react-native-top-modal
v0.1.11
Published
A component upon all views include keyboard for react native.
Downloads
32
Readme
react-native-top-modal
A component upon all views include keyboard for react native.
Installation
$ npm install react-native-top-modal --save
$ react-native link react-native-top-modal
Usage
import RNTopModal from 'react-native-top-modal';
export default class App extends Component<{}> {
render() {
return (
<RNTopModal style={styles.modal}>
<TouchableOpacity
style={styles.button}
onPress={this._hideModal}>
<Text>
Hide Modal
</Text>
</TouchableOpacity>
</RNTopModal>
)
}
}