每次我尝试运行:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
我收到错误:
Unable to resolve module `AccessibilityInfo` from `\fcm\node_modules\react-native\Libraries\react-native\react-native-implementation.js`: Module `AccessibilityInfo` does not exist in the Haste module map
我需要运行此命令以避免错误:
Unable to load script from assets 'index.android.bundle'...
几乎所有关于这个问题的帖子都没有成功(Unable to resolve module 'AccessibilityInfo', when trying to create release bundle)发生了什么事情?谢谢你的帮助。
试试这个react-native init Projectname --version 0.55.4
那对我有用也同样也面临着这个问题