react-native-omental-framework
v0.1.1
Published
Omental library
Downloads
1
Maintainers
Readme
react-native-omental-framework
Omental library
Installation
npm install react-native-omental-framework
Usage
import { DailyChallenge, loadGame } from 'react-native-omental-framework';
// ...
// To call the the spin and win directly use loadGame function
loadGame();
// To display the daily challenges view use <DailyChallenge> jsx tag
<DailyChallenge />
// Daily Challenges view has 3 onClick functions for the three games diplayed, current for spin and win it will automatically redirects to spin and win game. Please find the example that use the onClick functions
<DailyChallenge
onSpinClick={() => console.log("spin and win clicked")}
onLuckyClick={() => console.log("lucky lottery clicked")}
onShakeClick={() => console.log("shake and win clicked")}
/>
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