react-native问题汇总

1.ExceptionsManager.js:63 One of the sources for assign has an enumerable key on the prototype chain. Are you trying to assign a prototype property? We don't allow it, as this is an edge case that we do not support. This error is a performance optimization and not spec compliant.

navigator.push({component:one,params:data}) 问题出在data参数上

react-native正式包闪退原因之一(android)  执行命令

mkdir -p android/app/src/main/assets
$ react-native bundle --platform android --dev false --entry-file index.android.js 
  --bundle-output android/app/src/main/assets/index.android.bundle 
  --assets-dest android/app/src/main/res/

(ios)
mkdir ios/bundle
react-native bundle --platform ios --assets-dest ios/bundle --dev false --entry-file index.ios.js --bundle-output ios/bundle/main.jsbundle
 

 

 

 

原文地址:https://www.cnblogs.com/oldcownotGiveup/p/7434823.html