Comments (7)
I'm seeing this as well with:
dialog.set({
itemsCallback: () => { },
dismissListener: () => { },
});
from react-native-dialogs.
I'm getting the same issue, any update on this?
from react-native-dialogs.
Fixed it by putting the onPositive
code inside the input callback
. Issue arrises because the native module's callback
is being invoked multiple times.
from react-native-dialogs.
The @QuantumKing answer solve to me. Thank you!
My function is the following and it's working perfectly:
var options = {
title: I18n.t('observation').toUpperCase(),
content: I18n.t('observation_desc'),
positiveText: I18n.t('ok'),
negativeText: I18n.t('cancel'),
input: {
allowEmptyInput: false,
callback: (text) => {
this.props.editContactObservation(text, contact, this.props.user.uid)
},
}
};
const dialog = new DialogAndroid();
dialog.set(options);
dialog.show();
from react-native-dialogs.
Hi, Just seen this. I'm getting this too. Im not a JS wiz but using firebase, steup with npm firestack module and react native. Simply trying to get password reset working and for some reason getting the above error when they submit their email address. Anyone tell me what i'm doing wrong and how to fix this without speaking techie jargon?
from react-native-dialogs.
from react-native-dialogs.
closed in favor of #57
my comment: yes, callback can only be invoked once. If you'd like to have your JS function to be called multiple times, we'd need to use events. This is currently not implemented but I'd merge a PR for this if anyone is interested.
from react-native-dialogs.
Related Issues (20)
- Is this repo still maintained? HOT 4
- Crash when using showPicker with RN 0.57.4 HOT 2
- DialogAndroid.prompt set OptionsCommon' content not working on Android HOT 2
- 1.0.3 HOT 3
- Android resource linking failed on RN 0.58 HOT 6
- Duplicate type OptionsCheckbox HOT 2
- TypeError: null is not an object (evaluating '_reactNative.NativeModules.DialogAndroid.show' HOT 9
- [Feature] Would be nice showPicker method supports icons like the native HOT 4
- [Bug, Android] The input of a prompt is hidden partially HOT 1
- Is this compatible with React Native 0.60? HOT 2
- prettier config is missing HOT 2
- Custom font for Dialog HOT 2
- Typescript definition
- show left positiveTex
- Content property does not accept external component
- Fails to build on react-native 0.73
- java.lang.IllegalArgumentException while dismissing the dialog box HOT 5
- Validation?, how? HOT 1
- Not building production with 0.57.1 HOT 9
- Turn off autocorrect on prompts HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-dialogs.