react-native-safe-modules
react-native-safe-modules copied to clipboard
The component API is not available.
RN version 0.72.5+
How do I use this API correctly? What kind of data needs to be transferred by viewName to enable the component API to run properly? The code checks viewName in UIManager and UIManager.getViewManagerConfig(moduleName). The code execution is complete only when the two conditions are met. Otherwise, the code execution is directly return mockComponent;.