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

Support RectNative version 0.14 #136

Merged
merged 4 commits into from
Nov 13, 2015
Merged

Support RectNative version 0.14 #136

merged 4 commits into from
Nov 13, 2015

Conversation

alazier
Copy link
Contributor

@alazier alazier commented Nov 13, 2015

The argument type for ReactNatives JSContext initialize changed to JSContext causing our issue.

Would be nice to be able to detect the version at runtime which would allow us to continue to pass JSGlobalContext for old versions.

Fixes #135

@appden

@alazier alazier changed the title Support latest version Support RectNative version 0.14 Nov 13, 2015
@appden
Copy link
Contributor

appden commented Nov 13, 2015

If we are going to just drop support for 0.13.x, then the ReactExample package.json needs to be changed as well. 😄

JSGlobalContextRef ctx = JSGlobalContextCreate(NULL);
rctJSContext = [[RCTJavaScriptContext alloc] initWithJSContext:ctx];
JSContext *context = [[JSContext alloc] init];
//JSGlobalContextRef ctx = JSGlobalContextCreate(NULL);
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove comment pls

@alazier
Copy link
Contributor Author

alazier commented Nov 13, 2015

Changes look good. We should add a comment explaining the method signature stuff though.

alazier added a commit that referenced this pull request Nov 13, 2015
Support RectNative version 0.14
@alazier alazier merged commit 8e9a14e into master Nov 13, 2015
@fealebenpae fealebenpae deleted the al-version branch June 20, 2017 11:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants