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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.11
    1
    • latest

Version History

Package Sidebar

Install

npm i react-native-top-modal

Weekly Downloads

1

Version

0.1.11

License

MIT

Unpacked Size

25.5 kB

Total Files

18

Last publish

Collaborators

  • bellzhong
  • magicismight