Skip to content

Instantly share code, notes, and snippets.

@janhesters
Last active October 4, 2018 09:09
Show Gist options
  • Save janhesters/232a3754fa2631ee75e02d8d2fd99517 to your computer and use it in GitHub Desktop.
Save janhesters/232a3754fa2631ee75e02d8d2fd99517 to your computer and use it in GitHub Desktop.
// ... imports
import LoginForm from "../../components/LoginForm";
import { KeyboardAvoidingView, Platform } from "react-native";
import { NavigationScreenProp } from "react-navigation";
interface Props {
navigation: NavigationScreenProp<any, any>
}
export default class LoginScreen extends Component<Props, object> {
// ... navigationOptions
render() {
return (
<KeyboardAvoidingView
style={styles.container}
behavior={Platform.OS === "ios" ? "padding" : undefined}
>
<LoginForm navigation={this.props.navigation} />
</KeyboardAvoidingView>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment