Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep js invoke code same with iOS. #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

anysome
Copy link

@anysome anysome commented Nov 22, 2016

No description provided.

@@ -60,7 +67,11 @@ public void showActionSheetWithOptions(final ReadableMap options, final Callback

builder.setAdapter(adapter, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int index) {
callback.invoke(index);
if (index < cancelIndex) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And if cancelIndex = 1 and index = 2 ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's ok. The code keeps title and it's index same with pass in.
While an other bug is cancelIndex can't be -1 as default, change to
int _cancelInde = 99;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants