react-native-knot-promo
npm install react-native-knot-promo
import { FullScreenModal, Popup } from "react-native-knot-promo";
// ...
<FullScreenModal
onClose={() => setShowModal(false)}
onDone={() => setShowModal(false)}
isVisible={showModal}
cardImage={require('./assets/card_desktop.png')}
primaryColor={'#482A90'}
textColor={'#ffffff'}
/>
<Popup
onGetStarted={() => setShowGetStartedModal(false)}
isVisible={showGetStartedModal}
cardImage={require('./assets/card_desktop.png')}
primaryColor={'#21C577'}
textColor={'#FFFFFF'}
/>
name | type | required | default | description |
---|---|---|---|---|
onClose | function | Yes | - | - |
onDone | function | Yes | - | - |
isVisible | boolean | Yes | - | - |
cardImage | ImageURISource | Yes | - | - |
primaryColor | string | Yes | - | - |
textColor | string | Yes | - | - |
name | type | required | default | description |
---|---|---|---|---|
onGetStarted | function | Yes | - | - |
isVisible | boolean | Yes | - | - |
cardImage | ImageURISource | Yes | - | - |
primaryColor | string | Yes | - | - |
textColor | string | Yes | - | - |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library