I have created several android apps by using react native, I always and like to use ToastAndroid because it can pop up message and app user don't have to close it by clicking screen. Now I want to create IOS version from my apps. I want to ask what is your alternatives for android toast in ios.
You can use react-native-root-toast to make a Toast for both android and iOS.
I also recommend react-native-customizable-toast. It's updated and works with android,ios and expo
Related
If you create a React Native <Button>, it renders as a UIButton in iOS and an android.widget.Button in android. This means that it looks different on different platforms.
What about Pressables? What is the simplest way to create an iOS button on iOS and an Android button on Android without resorting to a 3rd partly npm library?
This is my view and this happens when I open the soft keyboard, I'm running on the latest Expo and React Native, the TextInput is not seen. I don't have standalone Android and iOS folders so I cannot add things to manifest or can I?
Use a KeyboardAvoidingView.
Here's the link to the doc https://reactnative.dev/docs/keyboardavoidingview
I've just switched from debugging my React Native app in the browser using the console to React Native Debugger. In the browser, there is a button to reload the app which is very useful and something that I need to do a lot. Now using React Native Debugger I can't find a way to reload the app which means I need to shake the device (very annoying).
I've searched the docs but can't find way of doing it.
Is there a way I'm missing?
Yes, a reload can be done I think. Right click -> reload Js.
You can find this under the shortcut references: https://github.com/jhen0409/react-native-debugger/blob/master/docs/shortcut-references.md
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.
I have had a play with react native creating ios apps but have not tried android yet. With android you also get 'android wear' for watches etc, will react native work creating apps for those devices?
React Native does not run on Android Wear at the current time, so you would have to do that code native.
Actually, you can try React native vanilla