Commit Graph
6 Commits
Author SHA1 Message Date
Krzysztof Magiera 6cf7234389 Handle empty nodes and convertable types to match iOS impl behavior (#24)
I found that Android reanimated code that runs on iOS would often crash because of nodes being used and not registered. This seems to be a quite frequent usecase that some nodes are created and used e.g. in "set" statement but because of the way views are configured they may not be attached to the view hierarchy and hence missing from native registry. 
Obj-c handles that case gracefully as all methods can be called on nullable objects. This is not the case in Java, and this PR attempts to mitigate that issue.
2018-06-08 14:24:09 +02:00
Krzysztof Magiera 46eac7a492 Fix issue with transform config being shared between all nodes (#25) 2018-06-08 09:45:54 +02:00
Krzysztof Magiera 6b19cde018 Add round and color nodes (#15)
This PR adds new "round" and "color" nodes.

Color nodes can be used to map to color props in view (e.g. backgroundColor)
Round is required for the color math to function properly (each color component needs to be an integer).

Added demo app where you can pan view around that changes color depending on the position on HSV palette.
2018-06-01 13:51:27 +02:00
Krzysztof Magiera 351640da67 Support JS property updates on Android 2018-04-27 12:31:19 +02:00
Krzysztof Magiera 97e8ddbc94 Use updateContext on iOS and implement updating non-native props 2018-04-25 16:55:34 +02:00
Krzysztof Magiera cb0a2680a8 Initial commit. 2018-04-25 11:22:32 +02:00