react-native-omental-framework
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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

Package Sidebar

Install

npm i react-native-omental-framework

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

15 MB

Total Files

90

Last publish

Collaborators

  • gamificationhub