Skip to content

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

@sharmapr25

Description

@sharmapr25

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions