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

Issue11 #13

Closed
wants to merge 3 commits into from
Closed

Issue11 #13

wants to merge 3 commits into from

Conversation

rozele
Copy link
Collaborator

@rozele rozele commented Dec 21, 2015

No description provided.

Decided to pursue an IJavaScriptExecutor after all. The reason is because the IJavaScriptExecutor can be pre-initialized the with React Native JavaScript library, without having any of that logic leak into the bridge or catalyst instance.

The IJavaScriptExecutor implementation uses Chakra, and we included some simple mapping visitors from JToken to JavaScriptValue and visa versa.

The current ReactBridge is a trivial wrapper around the IJavaScriptExecutor, that has some knowledge of the React Native protocols.

This changelist also includes some minor fixes to the DllImports for Chakra, which should eventually be refactored into a library (along with the JToken -> JavaScriptValue converters).
Added two unit tests to verify if using compiled delegates instead of reflection was actually giving us any performance gains and it was not.  Reflection is actually quite fast.  Replaced the NativeModuleBase implementation with reflection as the default invocation option.

Also, disabled .NET Native compilation for the unit tests project as it was causing issues with the Chakra runtime. Opened #12 to investigate.
@rozele rozele closed this Dec 21, 2015
@rozele rozele deleted the issue11 branch December 21, 2015 20:50
ebragge added a commit that referenced this pull request Mar 30, 2016
React Image three resize modes: 'contain', 'cover' and 'stretch'.

Fixes #13
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