0.1.2 • Published 2 years ago

react-native-knot-promo v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

nametyperequireddefaultdescription
onClosefunctionYes--Called when user close modal
onDonefunctionYes--Called when user start the flow
isVisiblebooleanYes--Determines whether your modal is visible
cardImageImageURISourceYes--Card image url
primaryColorstringYes--Button background color
textColorstringYes--Button text color

Popup

nametyperequireddefaultdescription
onGetStartedfunctionYes--Called when user start the flow
isVisiblebooleanYes--Determines whether your modal is visible
cardImageImageURISourceYes--Card image url
primaryColorstringYes--Button background color
textColorstringYes--Button text color

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