react-native-knot-promo
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

react-native-knot-promo

react-native-knot-promo

Installation

npm install react-native-knot-promo

Usage

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'}
/>

Options

FullScreenModal

name type required default description
onClose function Yes - -
onDone function Yes - -
isVisible boolean Yes - -
cardImage ImageURISource Yes - -
primaryColor string Yes - -
textColor string Yes - -

Popup

name type required default description
onGetStarted function Yes - -
isVisible boolean Yes - -
cardImage ImageURISource Yes - -
primaryColor string Yes - -
textColor string Yes - -

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-knot-promo

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

1.35 MB

Total Files

99

Last publish

Collaborators

  • taitmbarek