viet_share
v0.0.2
Published
Demo share component.
Readme
Share Component
Component share API services with React & React Native.
Guide
Step 1: Cd into your project.
Step 2: Install node modules.
yarn add git+https://bitbucket.org/Zengratul/share.gitOr
yarn add viet_shareStep 3: Consume API.
- Import from node_modules & use.
import Share from '@Viet/Share' // from git
// import Share from 'viet_share' // from npm
testApi = async () => {
let a = await Share.api().getPokemon();
return console.log(a);
};
testApiGraphQL = async () => {
let a = await Share.apiGraphQL().getStarWar();
return console.log(a);
};