-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render Error : null is not an object (evaluating 'ClientModule.init') #165
Comments
Hello @Yashg2001 Do you use Expo or pure react-native flow? |
Pure react-native |
Hello @Yashg2001 Please try to do these steps:
|
Hey, I am using expo but facing the same issue. Installed the node modules again too. But, the error still persists. |
Hello @badal-ag Expo provides two workflows (Managed and Bare) Please consider that moving to the bare workflow may cause the issues such as:
|
So, I was trying to get instance from voximplant and I encountered this problem. Any solution to this problem?
This is my code:
import {Voximplant} from 'react-native-voximplant';
import {useNavigation} from '@react-navigation/core';
import React, {useState, useEffect} from 'react';
import {
View,
TextInput,
StyleSheet,
Pressable,
Text,
Alert,
} from 'react-native';
import {APP_NAME, ACC_NAME} from '../../Constants';
const LoginScreen = () => {
const [username, setUsername] = useState('');
const [password, setPassword] = useState('');
const voximplant = Voximplant.getInstance();
const navigation = useNavigation();
useEffect(() => {
const connect = async () => {
const status = await voximplant.getClientState();
if (status === Voximplant.ClientState.DISCONNECTED) {
await voximplant.connect();
} else if (status === Voximplant.ClientState.LOGGED_IN) {
redirectHome();
}
};
}, []);
const signIn = async () => {
try {
const fqUsername =
${username}@${APP_NAME}.${ACC_NAME}.voximplant.com
;await voximplant.login(fqUsername, password);
The text was updated successfully, but these errors were encountered: