Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How to call AlertIOS in React Native

$
0
0

I am an iOS developer, but I know a little javascript. I am trying to use the AlertIOS, the document api is this

static alert(title: string, message?: string, buttons?: Array<{ text: ?string; onPress: ?Function; }>) 

I am confused with the parameters. I tried to write like this,but it give me error.AlertIOS('Username empty', 'Please type your username', buttons: {{text: 'Cancel', onPress: onPressCancel}});

How can i use AlertIOS properly ?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>