Notoriously Psychedelic Modules

    react-native-top-modal

    0.1.11 • Public • Published

    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>
        )
      }
    }
     

    Install

    npm i react-native-top-modal

    DownloadsWeekly Downloads

    30

    Version

    0.1.11

    License

    MIT

    Unpacked Size

    25.5 kB

    Total Files

    18

    Last publish

    Collaborators

    • bellzhong
    • magicismight