react-native-juicelife
v0.1.9
Published
juicelife react native
Downloads
34
Readme
react-native-juicelife
The package allows you take ai workouts using juicelife, install, add keys and use. No stress :)
Installation
Add react-native-juicelife to your project by running:
npm install react-native-juicelife
One more thing
To front-load the installation work, let's also install and configure dependencies used by this project, being react-native-webview
run:
npm install react-native-webview
for iOS: cd iOS && pod install && cd ..
for expo applications run:
expo install react-native-webview
and that's it, you're all good to go!
Usage
import React from 'react';
import Juicelife from 'react-native-juicelife';
import { View } from 'react-native';
function Pay() {
return (
<View style={{ flex: 1 }}>
<Juicelife
apiKey="xxxxxx"
workoutId="xxxxxxx"
callback={(result) => {}}
metaData={{}}
/>
</View>
);
}
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