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

Improved RNRFActions interface definition #1

Merged
merged 1 commit into from
Oct 4, 2016
Merged

Conversation

jankalfus
Copy link
Owner

I've improved the RNRFActions interface definition so that the Actions object is indexable by key. In code, we can then use Actions["mySuperAwesomeScene"]() to make a transition. Better yet, you can create an enum (e.g. Scenes and corresponding getKey function) and use it like this: Actions[getKey(Scenes.Register)]();

I've improved the RNRFActions interface definition so that the Actions object is indexable by key. In code, we can then use `Actions["mySuperAwesomeScene"]()` to make a transition. Better yet, you can create an enum (e.g. `Scenes` and corresponding `getKey` function) and use it like this: `Actions[getKey(Scenes.Register)]();`
@jankalfus jankalfus merged commit acf322e into master Oct 4, 2016
@jankalfus jankalfus deleted the jankalfus-patch-1 branch October 4, 2016 12:20
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.

1 participant