'The callback show() exists in module DialogAndroid...'
See original GitHub issue‘…but only one callback may be registered to a function in a native module’
I keep getting this error. My configuration looks like this
const dialog = new DialogAndroid();
let newColumnName = this.state[columnName];
dialog.set({
negativeText: 'Cancel',
positiveText: 'Ok',
onPositive: () => {
if (this.state[columnName] !== newColumnName) {
this.patchInvoice({ [columnName]: newColumnName });
}
},
title,
input: {
prefill: newColumnName,
allowEmptyInput: false,
callback: (nextValue) => {
newColumnName = nextValue;
},
},
alwaysCallInputCallback: true,
});
dialog.show();
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Dialogs - Android Developers
A dialog is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill...
Read more >How to display a Yes/No dialog box on Android?
If you're creating the Dialog from within a View.OnClickListener , you can use view.getContext() to get the Context. Alternatively you can use yourFragmentName....
Read more >Using DialogFragment | CodePath Android Cliffnotes
DialogFragment is a specialized Fragment used when you want to display an overlay ... someCallbackMethod() on a listener casted from the getTargetFragment() ......
Read more >Adding AlertDialog with Jetpack Compose to Android apps
If you have an existing Android project, you must add some configuration to ... onOpenDialogClicked() , which shows the dialog when required ...
Read more >It's not always possible to know when a dialog is dismissed.
When a dialog is dismissed, it must be possible to run a callback. ... print('dialog dismissed (by tapping the modal barrier or Android...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m getting the same issue, any update on this?
I’m seeing this as well with: