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

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -