This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useEffect, useState, useCallback} from 'react'; | |
import {View, StyleSheet, Alert} from 'react-native'; | |
import {Text} from 'react-native-paper'; | |
import {Button} from 'react-native-paper'; | |
import AsyncStorage from '@react-native-community/async-storage'; | |
import {TextInput} from 'react-native-paper'; | |
import {useFocusEffect} from '@react-navigation/native'; | |
import InCallManager from 'react-native-incall-manager'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {NavigationContainer} from '@react-navigation/native'; | |
import {createStackNavigator} from '@react-navigation/stack'; | |
import LoginScreen from './screens/LoginScreen'; | |
import CallScreen from './screens/CallScreen'; | |
import {SafeAreaView} from 'react-native-safe-area-context'; | |
const Stack = createStackNavigator(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useState} from 'react'; | |
import {View, StyleSheet} from 'react-native'; | |
import {Text} from 'react-native-paper'; | |
import {TextInput} from 'react-native-paper'; | |
import AsyncStorage from '@react-native-community/async-storage'; | |
import {Button} from 'react-native-paper'; | |
export default function LoginScreen(props) { | |
const [userId, setUserId] = useState(''); | |
const [loading, setLoading] = useState(false); |