I'm using WebStorm to make the project. After setting up the project I found that I don't have xcworkspace file under IOS folder.
How should I generate a xcworkspace file?
If you really need xcworkspace folder - you should use react-native init. That way your project will contain Android and iOS folders with corresponding files.
https://facebook.github.io/react-native/docs/getting-started.html#creating-a-new-application
If you just need to initialize app - be sure that you created your app following all steps in documentation.
https://facebook.github.io/react-native/docs/getting-started.html
Related
I am following along the official documentation, copy and pasting the code provided there:
https://facebook.github.io/react-native/docs/0.56/native-components-ios
But I am still running into this error
does anyone know what the docs are missing to get this working?
This is happens because native module not compiled yet, simply execute react-native run-ios in terminal while in project directory.
Note: For latest node version use: npx react-native run-ios
RNTMapManager.m must be created within the XCode project, the docs do not specify that. Open the XCode project and click File -> New -> File and create a new Cocoa Touch Class called "RNTMapManager". Then place the objective-c code within RNTMapManager.m. Rebuild the application and it should work!
To be able to use native components make sure your project was ejected (expo eject)
Once ejected open for example iOS project with XCode and create/add file from Xcode. This way it will update all the dependencies.
Rebuild the project
I want to know how can I access to android or ios files when I create a project with expo XDE?
like (android manifest.xml) or all files which I access to them when I create a project with this command react-native init ?
Expo is managing ios and android files internally. If you want to edit platform specific files you should eject your project. You can simply run this command at root directory of your project folder:
react-native eject
This command will create ios and android folder at root directory of your project.
More info please look at:Gist
When initializing a new project I see there are 2 options :
react-native init AwesomeProject
create-react-native-app AwesomeProject (I chose this)
I have been trying to install react-native-navigation v2.0. There are instructions to modify the libraries within xcode. I'm unable to open my project in xcode. My new AwesomeProject does not have an .xcodeproj item. I'm having trouble understanding :
do all RN projects have a .xcodeproj item
are there fundamentals differences between the above project initialization commands where I actually won't be able to modify library files via xcode?
Thanks
The .xcodeproj is inside the /ios dir.
I haven't used create-react-native-app in quite some time, but I don't see why it wouldn't have an /ios folder.
I have renamed my project using the react-native-rename package.
It works fine on Android, however all the files in my ios folder still have refs to my old project name. How can I change them?
Delete the IOS folder, then rebuild it again in with react-native.
I guess that's your easiest solution.
native, I started using EXPO to build with a
create-react-native-app
It was fine until I decided to actually create a IPA file to upload to apple to have more testing done by other users, so I did an init and created the needed files for ios and android deployment.
I am getting errors from Xcode building my IPA file over telling me that there is no scripts folder inside react-native, like
node_modules/react-native/scripts/ios-install-third-party.sh: cannot
execute: No such file or directory
and sure enough opening the folder for node_modules/react-native there is no scripts folder there. I'm not sure what the problem is, the react version I am using is 0.46.1.
Any help is greatly appreciated.
I have the same issue. I find the solution with using old version 0.44.0 -> react-native init --version="0.44.0" app.
Please check your current directory path and please remove your 'whitespace' in any folder name.This is very important.
I solved the issue using the following links:
Got the solution 1
Got the solution 2
Delete third-party folder from node_modules/react-native/