file not found #import <React/RCTBundleURLProvider.h> - react-native

I'm trying to integrate MapBox-GL into a react native project.
The problem is that when I run react-native run-ios --device the build fails with the error:
AppDelegate.m:12:9: fatal error: 'React/RCTBundleURLProvider.h' file not found
#import <React/RCTBundleURLProvider.h>
But when I run the same project on an emulator, all works fine.
Anyone else has experience with this? A simple Google on this is not giving the specific result.
"react": "^15.4.2",
"react-native": "^0.39.2",
"react-native-mapbox-gl": "^5.1.0"
I edited the build scheme to include React but nothing helps...

Do the following:
XCode Product ⇒ Scheme ⇒ Manage Schemes ⇒ Click '+'
At the Target Dropdown choose "React" and after saving this, scroll down and check the shared checkbox

Related

React/RCTBlobManager.h file not found in react-native-pdf issue

My React Native version is 0.60.5 . I tried to installed react-native-view-pdf library .While Building Xcode it is throwing error says "React/RCTBlobManager.h file not found in react-native-pdf issue"
In your RCTPdfView.m file change the line "React/RCTBlobManager.h" with this
#if __has_include("RCTBlobManager.h")
#import "RCTBlobManager.h"
#else
#import <React/RCTBlobManager.h>
#endif
and delete your application in simulator if exist, then run your project again. I hope it works!

bootstrap/dist/css/bootstrap.min.css can't be found

I tried to install react-bootstrap and followed these instructions:
https://react-bootstrap.github.io/getting-started/introduction
However after starting the app (simulated device via Android Studio) I receive this error:
error: bundling failed: Error: Unable to resolve module `bootstrap/dist/css/bootstrap.min.css` from `index.js`: bootstrap/dist/css/bootstrap.min.css could not be found within the project.
My dependencies are as follows:
"dependencies": {
"bootstrap": "^4.4.1",
"react": "16.9.0",
"react-bootstrap": "^1.0.0-beta.16",
"react-native": "0.61.5"
And both modules are within node_modules and so is the file bootstrap.min.css.
I tried things like
import 'bootstrap/dist/css/bootstrap.min.css';
import './node_modules/bootstrap/dist/css/bootstrap.min.css';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; (should be wrong anyways);
(in index.js and also App.js like mentioned in the instructions)
I also read here:
https://github.com/reactstrap/reactstrap/issues/1325
and here:
Can't resolve '../node_modules/bootstrap/dist/css/bootstrap.min.css'?
but I have the import like in the given answer.
I tried an older version of react-bootstrap and bootstrap and I deleted all node_modules and resinstalled them even though the "missing" file is there.
My project is basically a vanilla react-native project.
I just started with npx react-native init name and tried to add bootstrap, so nothing has changed.
What is the issue here?
Problem is you are trying to use react bootstrap with react-native project.
react-bootstrap : only support react.js projects not in react-native

Detox field CFBundleIdentifier not found inside Info.plist

Following Expo usage guide for detox and getting error below when running detox test.
Using:
"detox": "^10.0.10",
"detox-expo-helpers": "^0.6.0",
"expo-detox-hook": "^1.0.10"
IPA made with :
xcode v 9.4.1
expo v 31.0.6
Also tried IPAs built with xcode v10 and expo v 32.0.0, same error.
Error:
Error: field CFBundleIdentifier not found inside Info.plist of app binary at /Users/admin/Desktop/expo-test/bin/gogonow.app
at SimulatorDriver.getBundleIdFromBinary (/Users/admin/Desktop/expo-test/node_modules/detox/src/devices/drivers/SimulatorDriver.js:70:13)
Try with in the detox configuration
you should take care of .app path, xcodeproj path, Scheme[The app name] and the info.plist path.
This should work..

React Native - "You are currently using minified code outside of NODE_ENV === "production" "

I'm getting this error with React Native, not ReactJS so all the solutions/workarounds with webpack or browserify wont help.
Full error:
You are currently using minified code outside of NODE_ENV=== "production". This means that you are running a slower development build of Redux. You can use ... bla bla bla ( workarounds for ReactJS )
I'm currently running this config :
"expo": "^23.0.0",
"react": "16.0.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-23.0.0.tar.gz",
"react-redux": "^5.0.6",
"redux": "^3.7.2"
I tried starting the service with --no-minify and I always start it with --dev. I'm running the app on expo as well.
If anyone has a solution or a workaround for this it'd be really appreciated.
If you're running into this issue while using an android virtual device, open the debug menu (CMD+M on a Mac) > Dev Settings -> Uncheck JS Minify and reload your app. Pictures included below for reference.

React Native Android fails: error 3

Hope you could help me here:
I'm currently building an app which I created through CRNA and then ejected. I get the ios version right on but I'm currently struggling a lot with the android version.
When running react-native run-android all I can get is the following error:
Error type 3
Error: Activity class {com.myapp/com.myapp.MainActivity} does not exist.
I've checked app/build.gradle, app/src/main/AndroidManifest.xml, app/src/main/java/com/myapp/MainActivity.java and app/src/main/java/com/myapp/MainActivity.java for name errors on package. I've tried moving from com.myapp to com.mebius.myapp and com aswell.
Seems this comes from the only plugin I'm using. I'm keeping on the investigation
Any hints?
There are 3 possible reasons for the android app build fails to make
1. You need to define sdk path in android/local.properties
if local.properties doesn't place then make a file names with that
add
sdk.dir = home/user/AndroidApp/local/Sdk
You can match with their system path..
2. Your genymotion or avd must enable with the android studio
3. You must have to go with the following command
npm start
in new terminal .
Please go through with it.
Thanks
Actually I had a problem with my gradle config which look like:
include ':react-native-sensors'
project(':react-native-sensors').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-sensors/android')
rootProject.name = 'accelapp'
I needed to add: include ':app'
I don't know if it's due to the process of ejecting from CRNA or if it's due to react-native link react-native-sensors though.
EDIT After some investigation, I couldn't reproduce this issue. This leads me to say it was a faulty copy/paste...