how to solve Deprecated API Usage WebViewi in React Native IOS? - react-native

I'm building a React Native application that I'm trying to deploy to the App Store.
I used a couple of packages, the ones that I think gives me the errors are
https://www.npmjs.com/package/react-native-modal-datetime-picker/v/7.6.1
https://www.npmjs.com/package/react-native-app-link
https://www.npmjs.com/package/react-native-map-link
I found this solution and I also deleted other files found in the same location with this name RCTWKWebView etc..
Now I get build error with missing files.
I also deleted those same files under pod config files../React/Core
What should I do ? Am I missing something?
It's the first time dealing with this error and I can't seem to find a useful solution.
Thank you in advance

I think your react-native versions cause the problem. You try to remove files include UIWebView in name on the XCode under the React folder. After that, you try to upload it to AppStore.

Related

Output: "[Warning] Could not find workspace while activating"

I'm getting this error when opening VS Code. Does anyone know what it means? I've done some research but didn't get any relevant information :(
I've tried creating a workflow to see if the error disappeared, but it didn't.
It seems that react native is asking for a workspace to start but is it asking that in the first place? Can I disable react native from running when opening VS Code?
The folder opened when the screenshot above was taken was the folder it opens by default, I believe it's the mac "home" personal folder, and I have a folder called "git" inside of it, with all projects.
Given the date of this posting (2023-02-07), you're probably on version 1.10.0 of the extension. This sounds like this bug report in the microsoft/vscode-react-native GitHub repo: [Bug] Extension activating when it shouldn't #1891.
A fix is coming in version 1.10.1.
But it is taking some time and has not been release yet at the time of this writing 2023-01-31:
we're facing some problems in the last release process, recently we're waiting for new publishing PAT access to republish 1.10.1 again, maybe it will publish on marketplace on next week. We have nightly version for extension in marketplace as well, maybe you can use it now.
For now, you can try installing the nightly version.
Also, note from the extension's readme documentation:
Before going any further make sure that you:
have a working React Native environment.
have the emulator utility available in your PATH if you're developing Android applications.
[...]
Got it, this annoying log came from React Native Tools extension. They specify the requirements in the docs:
In my case, I don't have a specific React Native environment or the emulator PATH is not right.

'RCTConvert+AIRMap.h file not found error in React Native when trying to use Google Maps on iOS

I am trying to integrate Google Maps into my React Native iOS application. I followed the steps outlined in the documentation and installed the react-native-maps library. However, when I try to build my project in Xcode, I found many solutions but no one is working for me and I get the following error:
'RCTConvert+AIRMap.h' file not found
I have tried the following steps to resolve the issue, but the error persists:
I checked that the react-native-maps library is installed correctly and I have linked it using react-native link react-native-maps.
I tried to clean the build folder and rebuild the project.
I have tried to manually add the RCTConvert+AIRMap.h file to my project, but it still gives me the same error.
I have checked that my Xcode project's search paths are set correctly and $(SRCROOT)/../node_modules/react-native-maps/ios/AirMaps is added to the header search paths.
I have also tried to delete the Podfile.lock file, and reinstall the Podfile by running pod install.
Despite all these efforts, I am still getting the same error. Any help or suggestions on how to resolve this issue would be greatly appreciated.

How to Upgrade React Native Version 0.66.3 to 0.70.6?

Currently, my project running on the 0.66.3 version I need to upgrade to react native version 0.70.6. So I have used to following command
npx react-native upgrade
After running this command showing some error I have attached a screenshot please refer.
I am also trying the manual way using react native helper but some files are not available in my project.
so anyone please tell me how I will upgrade my project version?
After Run npx react-native run-android my build was created successfully but 3 errors showing in the metro bundler. I have attached a screenshot of the metro bundler error.
you can specify a React Native version and pass it as an argument:
npx react-native upgrade 0.70.6
you can also refer this official documentation for this
& it will also helps you if you got any error.
https://reactnative.dev/docs/upgrading
I found by changing react-native - index.js and react-native/Libraries/Text - index.js
Follow this link for output:
https://github.com/facebook/react-native/commit/3f629049ba9773793978cf9093c7a71af15e3e8d
Don't know whether it is the right way or not....
Since upgrading an application can break functionality in your app if you do not know what is needed to be changed. the upgrade is tells you to visit the pages to go through and see what has changed throughout the upgrading process.
Other as that I am just needing more information regarding to what is not working. Since upgrading is more as just running a command, its about reading the documentation and see what part is missing and what they replaced the files with. The missing files could be straight-out deprecated and not working with the new version.
As always check the debugger and read every message throughout and visit all links given and see the documentation regarding the upgrade differences, find out if there are any log files you could look at, and talk with people in your company / group of react-native about this.
"Some files are not available in my project"
This part might just be able to google and see if this is still supported or not in the version it could be phased out, or not supported in the version. that's where versioning comes in to play.
I am unsure what files and which libraries are deprecated based on your Opening Post, this needs more information, to help us, help you.

Duplicate resources com_crashlytics_export_strings.xml in Android during build process after adding Crashlytics

I have added latest version of react-native-firebase crashlytics 8.1.1 and I'm getting an error in Android during the build:
Duplicate resources in com_crashlytics_export_strings.xml
Any ideas how is possible to fix this issue? This file was automatically generated by Crashlytics.
P.S: if delete com_crashlytics_export_strings.xml it would be possible to make app build. However, I'm not sure how important that file is. Will Crashlytics work correctly if there wouldn't be this file in the project?
I deleted com_crashlytics_export_strings.xml and after that everything worked as expected!

react-native is missing the /scripts folder in the node_modules/ and causing trouble for iOS builds

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/