Skip to content
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

Error: RNZoomBridge.initialize got 3 arguments, expected 5 #36

Open
sharmapr25 opened this issue May 21, 2021 · 1 comment
Open

Error: RNZoomBridge.initialize got 3 arguments, expected 5 #36

sharmapr25 opened this issue May 21, 2021 · 1 comment

Comments

@sharmapr25
Copy link

On android getting the error of "got 3 arguments expected 5" in the android simulator and phone.
Here's the code:

import {View, Text, Alert} from 'react-native';
import ZoomBridge from 'react-native-zoom-bridge';

const zoomMeeting() => {
  const [isInitialized, setIsInitialized] = useState(false);
  const zoomInit = async () => {
    try {
      const initializeResult = await ZoomBridge.initialize({
        clientKey: CLIENT_KEY,
        clientSecret: CLIENT_SECRET,
      });
      setIsInitialized(true);
      console.log({ initializeResult });
    } catch (e) {
      Alert.alert('Error', 'Could not execute initialize');
      console.error(e);
    }
  }
  
  useEffect(() => {
    zoomInit();
  }, []);

  
  return (
    <View><Text>Hello</Text></View>
  )
}

library version: "react-native-zoom-bridge": "^1.0.18"

Note:

  • Tried with passing domain also to initialize function still facing the same issue
@chaimPaneth
Copy link
Owner

Hi @sharmapr25 I haven't updated the library a while now I didn't get the time have you tried working with https://github.com/mieszko4/react-native-zoom-us

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants