Is AlertIOS in React Native an outdated component? - react-native

I am learning React Native and what I am learning from only talks about Alert, even for iOS. In the API/Docs I see AlertIOS and I am curious if it does something special or is lighter weight for an iOS only app than the regular Alert?
(I found no post that had a definitive answer, but all the AlertIOS posts seem to date back to 2015-ish.)
Thank you.

AlertIOS is special as it allows users to enter information into the alert using AlertIOS.prompt. According to the React Native documentation this is only a common pattern on iOS which is why they only made it available with an iOS specific API.
React Native still supports and recommends using Alert if you do not need iOS specific functionality.
From the alert docs
This is an API that works both on iOS and Android and can show static
alerts. To show an alert that prompts the user to enter some
information, see AlertIOS; entering text in an alert is common on iOS
only.
From the alertIOS docs
We recommend using the Alert.alert method for cross-platform support
if you don't need to create iOS-only prompts.

Related

Get a google sign in button on React Native Expo

I already have working google sign in, although with just a regular button. How do I render a button that matches google's sign in guidelines with the rainbow G and all? I cannot use the React Native Google Sign In package, as I am using Expo Go.
how you doing ?
So, the best way to get a nice Google, Facebook login in expo is doing a good custom button, is not fair just to tell you to do your own, without even let an example for you. right ?
The best advise is to use React Native Elements, it helps a lot doing your components in React Native and its also avaible to Expo.
#The killer social icons from react native elements would be awesome!
https://reactnativeelements.com/docs/2.3.2/social_icon
you can also use an fontawesome button
An speacial snack example i made to you.
https://snack.expo.dev/VCYpu9tk1
oficial docs
https://docs.expo.dev/guides/icons/#button-component

Customising alerts in react-native

Is there any way of customising native Alert component so it'll accept some components(like inputs and so on..) ? Please DO NOT suggest using some modals from npm and constructing something by hand, I know about these approaches...
I'm interested, if it's possible to render children components inside of native alert, because it accepts only title, message and actions and nothing else...
more than text input no and it only work for ios,from docs for ios yes(text input) alert ios,but you can't really customize it
even in native ios you can't customize it more than how is it
This is an API that works both on Android and iOS and can show static alerts. To show an alert that prompts the user to enter some information, see AlertIOS; entering text in an alert is common on iOS only.
link to it https://reactnative.dev/docs/alert

React Native inputs on iOS and Android

I've been evaluating React Native as a replacement for Cordova, and was wondering if there is a widely accepted solution for styled text inputs. I'd like to see text inputs rendered in Material Design on Android, and Apple style on iOS.
Do you have recommendations for a specific library, or will I have to write my own/combine multiple libraries? Thank you!
You could check out https://nativebase.io/ it supports platform specific default styling there are others as well like https://react-native-training.github.io/react-native-elements/ and http://www.xinthink.com/react-native-material-kit/ which has consistent styling regardless of platform.
Coming from a Cordova/Sencha Touch background I suggest you try to create your own style using only the default react native components, the reason is that before I was having the same question regarding component library that I could use so that I could target all platform at once, but react native isn't 100% cross platform and learning to style on different platform might give you an idea and feedback with your evaluation, unless your aiming to have a project as soon as possible and that is a different story.

How to use Voximplant text chatting together with React Natiwe?

Use Voximplant text chatting along with React Native.
Has anyone used it? What ways did you use if there is no plug-in?
Voximplant is used mainly for Voice and Video communications. Text messaging is a pretty new addition and it has not yet landed in the React Native SDK (it will, but in some time).

AIR Native Extension for accessing native UI controls on IOS

Does anyone have a clear idea about or a sample of air native extension that helps me use alert view of apple touch devices.
I tried a lot for the same but ended up getting no success.
Thanks in advance.
I am not tried this library anyhow please try with NativeAlert.
(OR)
This for alternative for access native UI.
You can try with ios-theme-for-flex-mobile-projects link.
This link shows like iOS Alert view.
Please find mobiletheme_ios_usage.fxp link you can download that project then workout.You can see iOS alert view(Not Native UI).