@eohjsc/react-native-hts
v0.6.48
Published
React native HTS
Downloads
112
Readme
Install
yarn add @eohjsc/react-native-hts
If use react-native < 0.60
$ react-native link @eohjsc/react-native-hts
iOS Platform:
$ cd ios && pod install && cd ..
# CocoaPods on iOS needs this extra step
Use
import HTS, {initSPConfig} from 'react-native-hts';
export const HTSStack = memo(() => {
initSPConfig(config);
...
return (
<HTS
auth={auth}
onExitApp={onExitApp}
/>
);
});
initSPConfig
| Props | Description | Default | | ------- | :----------: | :------------------------: | | apiRoot | Your baseURL | https://backend.eoh.io/api |
Props
| Props | Description | Default | | --------- | :-------------------------------: | :------: | | auth | Your auth | null | | onExitApp | Function called when you exit app | goBack() |