Skip to content
Phoenix edited this page Mar 1, 2019 · 12 revisions

Welcome to the powerline-rn wiki!

Troubleshooting

Android

  • While resolving module react-native-vector-icons/Ionicons, the Haste package react-native-vector-icons was found. However, the module Ionicons could not be found within the package. Indeed, none of these files exist:

Solution: rm ./node_modules/react-native/local-cli/core/__fixtures__/files/package.json

To fix the long file name issue, I made some tweaks.

var folderPath = getBasePath(asset); var fileName = (folderPath + '/' + asset.name) .toLowerCase() .replace(/\//g, '_') // Encode folder structure in file name .replace(/([^a-z0-9_])/g, '') // Remove illegal chars .replace(/^assets_/, ''); // Remove "assets_" prefix if (fileName.length > 90) { fileName = fileName.substr(86); } return fileName;

  • uncompiled PNG file passed as an argument. Must be compiled first into .flat file.. error: failed parsing overlays.

Add android.enableAapt2=false on gradle.properties

  • error: Duplicate file. Original is here.

https://github.com/facebook/react-native/issues/5787#issuecomment-383407482

  • Missing bundle file

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 react-native run-android

  • Regarding image issues, please try to remove them first and do npm start

iOS

  • Deal with The name react-native was looked up in the Haste module map. It cannot be resolved ios build (ci Jenkins) in React native

Solution: https://medium.com/@nhancv/deal-with-duplicate-error-package-ios-build-ci-jenkins-in-react-native-cc5dd7b96e8

Clone this wiki locally