React Native Webview error 1002 mailto link - react-native

I'm running a website inside of a react-native-webview with some additional Javascript for iOS and Android in React Native (expo). This way we have an app, without having to create another codebase.
The problem is there are anchors with mailto in the href, these break the app on both platforms and return a -1002 error on iOS and -10 error on Android.
Is it possible to work something into the Webview to open the default mail app?

Related

I am not able to see the same output of the react native application as on web and android emul irrelevant of the code being compiled without error

[Web view of appendering on web]
android emulator view of the app
As you can see it is not rendering all the component on the emulator or device but on web.
Not able to understand the problem either it is related to rendering or native component issue .

Do I need layout/activity_main in react native app (android) for admob?

I've created a react native app and trying to add some ads following admob doc and when I add setContentView(R.layout.activity_main); in MainActivity.java in Android Studio it gives me this error: 'cannot resolve symbol activity_main'.
I don't have a layout folder in res (have re-created the app and still nothing).
Do I need to create layout and add activity_main.xml to it? And in that case, what do I add to the xml file?
No
You don't have to touch the native code of android of react native only for exceptional cases.
Follow an online tutorial to do the work.
How add How add addmob with react native on google

React native app crashes in start after Native-Base font setup in android

After setting up font theme with native base using this guide https://docs.nativebase.io/Customize.html#theme-font-headref my app crashes after opening it in android without throwing any error.
It works fine in IOS.
Any similar experience?

Can native react app code convert/rollback to native mobile code(ios and android)?

Basically the title says all - Can native react app code convert/rollback to native mobile code(ios and android)?
Background - there is a react native app and there are some bugs and I would like to export the react native code to their native app code (ios and android) which I can fix them in native apps.
No. The React Native JavaScript is never translated into Swift or Java code and then compiled - it runs within the Safari or Chrome JavaScript engines. See here for more details.
However, as its name implies, React Native does rely on native code for more complex operations. If the bugs are in those npm modules you might be able to fix them there.

SMS verification with React Native for Both Android and IOS

I am trying to do sms verification through react native where an OTP will be sent to a provided number. It worked when I was doing it normally in react native following this example https://www.npmjs.com/package/react-native-sms-android but in expo project its not working. Though the package only works for android , I want a solution which will work for both android and ios.
I have also tried the following package
https://www.npmjs.com/package/react-native-send-sms
https://www.npmjs.com/package/react-native-sms-android only supports android. If you need to work on ios then you have to use LinkingIOS in react-native and call sms app. It's a bit headache.
https://www.npmjs.com/package/react-native-send-sms is depricated.
You can use this to send SMS in both android and ios.