这是我之前的问题: Unable to resolve module in ReactNative - however I want to make the module optional 这就是我被指向的资源Reactnative 这是我当前的代码: let GoogleSignin;
const GoogleSigninInit = '@react-native-community/google-signi
一些本机NodeJS模块在ReactNative中不受支持,因此我尝试有条件地加载它们。然而,这是行不通的: require('a'); // module 'a' works in ReactNative require('b'); // module 'b' doesn't work in ReactNative不幸的<