|
@@ -43,14 +43,7 @@ const App = () => {
|
|
|
const showActionMenu = () => {
|
|
|
if (Platform.OS === 'ios') {
|
|
|
const options = [
|
|
|
- 'Setting',
|
|
|
- 'Profile',
|
|
|
- 'Contact Center',
|
|
|
- 'Notification Center',
|
|
|
- 'Chat',
|
|
|
- 'Call',
|
|
|
- 'Live Streaming',
|
|
|
- 'Cancel',
|
|
|
+ 'Features'
|
|
|
];
|
|
|
|
|
|
ActionSheetIOS.showActionSheetWithOptions(
|
|
@@ -96,55 +89,7 @@ const App = () => {
|
|
|
|
|
|
const handleActionSheetPress = async (buttonIndex: any) => {
|
|
|
setActionSheetVisible(false);
|
|
|
- if (buttonIndex === 0) {
|
|
|
- try {
|
|
|
- CallNative.openSetting();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- }
|
|
|
- if (buttonIndex === 1) {
|
|
|
- try {
|
|
|
- CallNative.openProfile();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- }
|
|
|
- if (buttonIndex === 2) {
|
|
|
- try {
|
|
|
- CallNative.openContactCenter();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- }
|
|
|
- if (buttonIndex === 3) {
|
|
|
- try {
|
|
|
- CallNative.openNotificationCenter();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- }
|
|
|
- if (buttonIndex === 4) {
|
|
|
- try {
|
|
|
- CallNative.openChat();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- }
|
|
|
- if (buttonIndex === 5) {
|
|
|
- try {
|
|
|
- CallNative.openCall();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- }
|
|
|
- if (buttonIndex === 6) {
|
|
|
- try {
|
|
|
- CallNative.openStreaming();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
- }
|
|
|
+ //FEATURES2
|
|
|
};
|
|
|
|
|
|
return (
|
|
@@ -161,34 +106,7 @@ const App = () => {
|
|
|
</View>
|
|
|
{isActionSheetVisible && (
|
|
|
<View>
|
|
|
- <Button
|
|
|
- title="Setting"
|
|
|
- onPress={() => handleActionSheetPress(0)}
|
|
|
- />
|
|
|
- <Button
|
|
|
- title="Profile"
|
|
|
- onPress={() => handleActionSheetPress(1)}
|
|
|
- />
|
|
|
- <Button
|
|
|
- title="Contact Center"
|
|
|
- onPress={() => handleActionSheetPress(2)}
|
|
|
- />
|
|
|
- <Button
|
|
|
- title="Notification Center"
|
|
|
- onPress={() => handleActionSheetPress(3)}
|
|
|
- />
|
|
|
- <Button
|
|
|
- title="Chat"
|
|
|
- onPress={() => handleActionSheetPress(4)}
|
|
|
- />
|
|
|
- <Button
|
|
|
- title="Call"
|
|
|
- onPress={() => handleActionSheetPress(5)}
|
|
|
- />
|
|
|
- <Button
|
|
|
- title="Live Streaming"
|
|
|
- onPress={() => handleActionSheetPress(6)}
|
|
|
- />
|
|
|
+ //FEATURES3
|
|
|
<Button title="Cancel" onPress={() => setActionSheetVisible(false)} />
|
|
|
</View>
|
|
|
)}
|