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
Post a Comment