telemed-ui-layer v0.6.8
telemed-ui
This document describes the usage of Telemed UI package inside Star health’s app
Installation
npm install telemed-ui-layer or
yarn add telemed-ui-layer
cd ios && pod install
Dependency
"react-native-document-picker": "^8.1.4",
"react-native-image-picker": "^5.3.1",
"react-native-twilio-video-webrtc": "^3.1.0",
"react-native-blob-util": "^0.17.3",
"socket.io-client": "^4.6.0",
"react-native-fast-image": "^8.6.3",
"react-native-image-progress": "^1.2.0",
"react-native-background-timer": "^2.4.1",
"react-native-keep-awake": "^1.1.0",
"react-native-scoped-storage": "^1.9.3",
"react-native-element-dropdown": "^2.8.1",
"react-native-device-info": "^10.6.0",
"react-native-permissions": "^3.8.0",
"@react-native-community/netinfo": "^9.3.9",
Usage
Open Pod file and add the following line. pod 'react-native-twilio-video-webrtc', path: '../node_modules/react-native-twilio-video-webrtc'
Run cd ios && pod install
Add OPDStack as screen inside app's navigator.
import { OPDStack, setAppTheme, EVENTID, navigateToOpd } from 'telemed-ui-layer';
import { useNavigation } from '@react-navigation/native';
// ...
setAppTheme('light'); //light or dark
return (
<Stack.Navigator>
<Stack.Screen name="CurrentApp" component={CurrentAppScreen} />
<Stack.Screen name="OPDApp" component={OPDStack}>
</Stack.Navigator>
);
To Scheduled Call module;
// ...
const navigation = useNavigation();
navigateToOpd(navigation, EVENTID.ScheduledCall, userId, token);
To open instant Call module ;
// ...
const navigation = useNavigation();
navigateToOpd(navigation, EVENTID.InstantCall, userId, token);
To open consultation list module ;
// ...
const navigation = useNavigation();
navigateToOpd(navigation, EVENTID.MyConsultation, userId, token);
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
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago