React Native AlertIOS.prompt(args) is called constantly even though it is onPress -


i added code text component this:

      <text          style={styles.text}         onpress={           alertios.prompt(             'title', 'defaultvalue',               [{text: 'cancel', onpress: this.oncancel.bind(this)},              {text: 'ok', onpress: this.onok.bind(this)}])}         >           press me!       </text> 

but ran simulator, prompt called after mounting screen , continually displayed on , over, whether clicked ok/cancel button on or not.

i have no other alertios.prompt() calls anywhere in code.

am doing wrong or bug in react-native?


Comments

Popular posts from this blog

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -