question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'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:closed
  • Created 7 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
vunguyentuancommented, Nov 14, 2016

I’m getting the same issue, any update on this?

2reactions
pfeiffercommented, Sep 9, 2016

I’m seeing this as well with:

dialog.set({
  itemsCallback: () => { },
  dismissListener: () => {  },
});
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found