Created
February 14, 2018 08:25
-
-
Save morishin/bcd6a01a2175d323b974c8fcaee10790 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { KeyboardAvoidingView, KeyboardAvoidingViewProps, Platform, View } from 'react-native'; | |
export default class _KeyboardAvoidingView extends React.Component<KeyboardAvoidingViewProps, {}> { | |
render() { | |
if (Platform.OS === 'ios') { | |
return <KeyboardAvoidingView {...this.props} />; | |
} else { | |
return <View {...this.props} />; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment