Quick fix on keyboard on ios
This commit is contained in:
@@ -4,29 +4,29 @@ import { StyleSheet, Text, View, TextInput, SafeAreaView } from 'react-native';
|
||||
import API from './../API.js';
|
||||
import LoginForm from './../components/Login.js';
|
||||
|
||||
export default function App({navigation, route}) {
|
||||
useEffect(()=>{
|
||||
export default function App({ navigation, route }) {
|
||||
useEffect(() => {
|
||||
getData = async () => {
|
||||
let r = await API.isLoggedIn();
|
||||
if(r){
|
||||
if (r) {
|
||||
await API.logout();
|
||||
navigation.navigate('Login')
|
||||
}
|
||||
}
|
||||
getData();
|
||||
return ()=>{
|
||||
|
||||
return () => {
|
||||
|
||||
}
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<SafeAreaView style={styles.container}>
|
||||
<LoginForm />
|
||||
<StatusBar style="auto" />
|
||||
<View style={{position:"absolute", top:30, left: 10, opacity: 0.5}}>
|
||||
<Text>{"<- Not an EMI family memeber?"}</Text>
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
<SafeAreaView style={styles.container}>
|
||||
<LoginForm />
|
||||
<StatusBar style="auto" />
|
||||
<View style={{ position: "absolute", top: 30, left: 10, opacity: 0.5 }}>
|
||||
<Text>{"<- Not an EMI family memeber?"}</Text>
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -102,8 +102,7 @@ let NewPostView = (props) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<SafeAreaView>
|
||||
<View style={{ padding: 10}}>
|
||||
<View style={{ padding: 10, paddingTop: 20, flex:1, justifyContent:"center"}}>
|
||||
<View style={{ flexDirection: "row", marginBottom: 10, justifyContent: "space-around" }}>
|
||||
<Text style={{ fontSize: 25 }}>{i18n.t("message.statusUpdate")}:</Text>
|
||||
<Button icon="send" mode="outlined" onPress={handleNewPostButton}>
|
||||
@@ -127,7 +126,7 @@ let NewPostView = (props) => {
|
||||
textAlignVertical: "center",
|
||||
textAlign: "center",
|
||||
fontSize: 20,
|
||||
minHeight: 200
|
||||
minHeight: 100
|
||||
}}
|
||||
autoFocus={true}
|
||||
/>
|
||||
@@ -152,7 +151,6 @@ let NewPostView = (props) => {
|
||||
)
|
||||
}
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user