1- Run in root folder screen command grep -r UIWebView node_modules/* t
2- Check dependencies which need updated, excluding:
node_modules/react-native
node_modules/metro
node_modules/fbjs
Update all external dependencies
4- Replace all WebView what used default react native. Replace it on https://github.com/react-native-community/react-native-webview
5- Added script into Podfile
post_install do |installer|
# REMOVE ALL WEB VIEWS
react_project = Xcodeproj::Project.open("../node_modules/react-
native/React/React.xcodeproj")
react_project.main_group["React/Views"].files.each do |file|
if file.path.match(/^RCTWebView/)
file.remove_from_project
end
end
react_project.save
end
6- Run pod install command, and you are done
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…