Skip to content

Commit 00c6957

Browse files
committed
Fix bug with staysigned in modal
1 parent f57949a commit 00c6957

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/components/AuthForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const AuthForm: React.FC<LoginFieldProps> = ({
4646
<TextInput
4747
style={tw`flex text-white border-white border border-2 border-rounded rounded-3xl w-[70] h-10`}
4848
placeholder="Password"
49-
placeholderTextColor="white"npx react-native info
49+
placeholderTextColor="white"
5050
secureTextEntry
5151
autoCapitalize="none"
5252
autoCorrect={false}

src/screens/CaseContactListScreen.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ import { useState, useEffect } from 'react'
44
import React from 'react';
55

66
import CaseContactListCard from '../components/CaseContactListCard';
7-
import { SafeAreaProvider } from 'react-native-safe-area-context';
87

98
const CaseContactListScreen = ({ navigation, route }) => {
10-
const [modalVisible, setModalVisible] = useState(false);
9+
const [modalVisible, setModalVisible] = useState(true);
1110
const data = [{ name: '🦋CINA-11-1002' }, { name: '🦋CINA-11-1003' }, { name: '🦋CINA-11-1004' }];
1211

1312
useEffect(() => {
@@ -39,8 +38,6 @@ const CaseContactListScreen = ({ navigation, route }) => {
3938
</View>
4039
</View>
4140
</View>
42-
<SafeAreaProvider>
43-
<SafeAreaView style={tw`flex-1 justify-center items-center`}>
4441
<Modal
4542
animationType="slide"
4643
transparent={true}
@@ -60,8 +57,6 @@ const CaseContactListScreen = ({ navigation, route }) => {
6057
</View>
6158
</View>
6259
</Modal>
63-
</SafeAreaView>
64-
</SafeAreaProvider>
6560
</>
6661
);
6762
};

0 commit comments

Comments
 (0)