Search code examples
react-nativereact-native-iosreact-native-webview

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


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


Solution

  • 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.