Commit Graph

57 Commits

Author SHA1 Message Date
osdnk
f8d0283008 Update Android things
(cherry picked from commit 255bb74)
2018-08-06 14:49:27 +02:00
Michał Osadnik
e881481f5d bump compileSdkVersion in Example (#56)
* Update build.gradle

* Update build.gradle
2018-08-06 13:49:49 +02:00
Cameron Knight
076e2b2d32 Add typescript definitions (#51)
* Add typescript definitions

* Update typescript definition based on PR comments

* Update react-native-reanimated.d.ts
2018-08-06 10:30:35 +02:00
Cameron Knight
22e0f221f8 Color alpha should work with AnimatedNode (#50)
This enables `color` to work in the event that the `alpha` value for a color is a derived node rather than explicitly an `AnimatedValue`
2018-08-05 15:43:57 +02:00
Cameron Knight
a4d6e11902 Use strict equals to compare animation values (#46) 2018-08-03 17:42:47 +02:00
Raúl Gómez Acuña
60817e1e11 Update diffClamp.js (#47)
Fixing default imports
2018-08-03 17:41:38 +02:00
Krzysztof Magiera
9e93addf4c Document 2018-08-02 18:58:21 +02:00
Krzysztof Magiera
369f7ef430 Add secon animation to start example 2018-08-02 16:09:53 +02:00
Krzysztof Magiera
330b983b42 Small cleanup of start/stop API implementation 2018-08-02 16:09:53 +02:00
Krzysztof Magiera
f14ab827ba Little cleanup of start/stop API implementation 2018-08-01 19:21:17 +02:00
Krzysztof Magiera
c9f2b77bcc Merge branch 'master' of github.com:kmagiera/react-native-reanimated 2018-08-01 19:01:18 +02:00
Michał Osadnik
01ccea7b3c Add start/stop api (#18)
* Add start api on iOS and struggle to do it on Android 🙌

* Why don't you wanna work 🌝 ?

* Consider crucial

* Well, it might be the issue

* Fix memory leaks

* Make it topological on Android

* Make it topological on iOS as well 🎉

* Change queue to stack

* Style issue

* Names style

* Dummy -> AlwaysEvaluative

* Make it workable for stopping as well

* Add { finished } callback ☑️

* Remove dummy code

* Remane again

* Always

* Remove dummy

* Fix merge issue

* Add zero

* Add delay

* Add readme

* Optimize imports

* Remove unused imports:

* Add tests and fix their consequences

* Styles

* Fix example

* Add sequence, fix delays

* Unused imports

* Unused imports

* Fix tests

* Fix delay

* Change seq system

* Useless stuff

* Useless stuff

* Make it more elegant

* Fix imports

* Fix readme

* Add setValue

* Add parallel

* Fix PR issues

* Fix PR issues

* Fix PR issues

* Fix PR issues

* Fix PR issues

* Simplify delay

* cleanup

* cleanup

* seqq

* pr

* remove delay

* remove delay

* remove delay

* remove delay

* Fix tests

* Fix stop

* Add comment

* rename

* tests wip

* Fix tests

* Fix tests

* wish to make it work some day

* Moar tests

* Remove dummy tests

* Moar js fixes

* android fixed

* ios fixes

* Update rm

* rev tim

* rem deps

* rem imports

* Moarrr testzzz

* line

* Testss

* rmn

* rm empty line

* rnm

* spr

* cmt

* Tests

* style

* sop line

* Fix tests

* Fix test

* fix fix fix

* fix fix fix

* rename

* Fix tests

* simplify

* Add comment

* Add comment

* Add comment

* fixx

* Fix docs

* enter

* fix docs

* fix

* change logic

* mock in all rolling in the tests 🙋

* Fix

* Add one more test

* pos

* current return

* add child

* rename

* rename

* Protocol

* rnm

* Fix tests

* Fix another test

* Fix yet another test

* Rename

* Fix tests

* ``

* detach

* Moar tests

* Fix detaching

* Update REAAlwaysNode.h
2018-08-01 19:00:58 +02:00
Krzysztof Magiera
4ce435c93f Merge branch 'master' of github.com:kmagiera/react-native-reanimated 2018-08-01 18:56:17 +02:00
Michał Osadnik
7fae9e2891 Chat heads example (#41)
* make spring moar like Animated

* Add chat head example

* Fix heads

* Revert
2018-07-20 14:30:40 +02:00
Serge Lebedev
938e1ca4dc Fix typos in README (#39) 2018-07-17 14:51:17 +02:00
Krzysztof Magiera
29edd1c1b6 Bump version -> alpha.5 2018-07-10 11:14:25 +02:00
Krzysztof Magiera
cc4ab7fbe7 Update createAnimatedComponent to be compatible with react 16.4 changes 1.0.0-alpha.5 2018-07-10 11:14:01 +02:00
Krzysztof Magiera
1701f3947f Update example app to use RN 0.56 2018-07-10 11:13:32 +02:00
Michał Osadnik
c48bbd1d26 Fix freezing initalized value in AnimatedNode (#30)
* Fix freezing initalized in AnimatedNode

* Update AnimatedNode.js
2018-06-25 08:56:26 +02:00
Dylan Vann
f607cebcd4 Configure jest and add tests for interpolate. (#23) 2018-06-10 19:52:09 +02:00
Krzysztof Magiera
05c92a777b Bump version -> alpha.4 2018-06-08 18:21:28 +02:00
Krzysztof Magiera
11a25ebbd9 Fix interpolate examples 2018-06-08 14:27:51 +02:00
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
881990b548 During rerender try to reuse prop, style, transform nodes when possible (#22)
When reanimated component gets re-rendered we used to create new Prop node which in turn created Style and Transform node if present.
This turns out to be a huge waste of resources as new nodes would generate additional bridge traffic while they often represent the same prop mapping.

We now extract prop, style and transform node configuration which uniquely represents node behavior and try to match that with node used previously. If config matches we reuse the node instead of creating a new one.

This also fixes #13
2018-06-08 13:58:27 +02:00
Krzysztof Magiera
46eac7a492 Fix issue with transform config being shared between all nodes (#25) 2018-06-08 09:45:54 +02:00
Dylan Vann
ad8b0cf534 Interpolate method, input validation, linting, refactoring. (#17)
Interpolate validations are taken from `Animated`.
2018-06-07 20:24:48 +02:00
Michał Osadnik
401227f8f1 Update package.json (#20) 2018-06-04 10:33:50 +02:00
Krzysztof Magiera
c9103b2d94 Bump version -> alpha.3 1.0.0-alpha.3 2018-06-01 13:52:18 +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
Dylan Vann
b9ba694ace Add interpolate function from kmagiera with example. [WIP] (#11)
Interpolate function from https://github.com/kmagiera/react-native-reanimated/issues/10#issuecomment-392066106 with extrapolation handling, examples, and documentation.

Closes #10 .
2018-06-01 08:14:44 +02:00
Michał Osadnik
8d3ece3356 Add iPad support in Example app 🍎 (#14) 2018-05-31 09:55:36 +02:00
Michał Osadnik
3821486010 Fix typo (#12)
* Update README.md

* Update README.md
2018-05-29 13:18:31 +02:00
Krzysztof Magiera
e6c316eae5 Merge pull request #9 from kmagiera/react-create-ref
Update package.json and change string ids to React.createRef
2018-05-23 19:11:16 +02:00
osdnk
cd86827daf Fix 2018-05-23 17:03:49 +02:00
Krzysztof Magiera
ac9c489707 Merge pull request #8 from kmagiera/fix-typos
Fix typos
2018-05-22 18:51:01 +02:00
osdnk
13b1b1d268 Update package.json and change string ids to React.createRef 2018-05-22 15:28:48 +02:00
osdnk
6d7efb95b5 Fix typos 2018-05-22 13:38:08 +02:00
Krzysztof Magiera
00ca979469 Update README.md
Update link to ReactEurope talk
2018-05-20 20:30:36 +02:00
Krzysztof Magiera
2742c6380c Merge pull request #7 from AlicanC/alicanc-fix-readme-typos
Fix typos in README
2018-05-20 13:26:15 +02:00
Alican Çubukçuoğlu
83998b56b2 Fix typos in README 2018-05-19 13:15:30 -07:00
Krzysztof Magiera
1707c80a04 Merge pull request #6 from joegoodall1/patch-1
Update README.md
2018-05-18 20:00:48 +02:00
Joe Goodall
bb4e8499b5 Update README.md
Copy(text) corrections
2018-05-18 12:38:03 +01:00
Krzysztof Magiera
1b157a82ec Merge pull request #5 from slorber/patch-1
fix some doc examples
2018-05-18 10:09:29 +02:00
Krzysztof Magiera
d3a271e841 Merge pull request #3 from lanceharper/patch-1
Update README.md
2018-05-18 10:08:12 +02:00
Sébastien Lorber
b8c91d2c81 fix some doc examples 2018-05-18 00:21:58 +02:00
Lance Harper
fc923b3b88 Update README.md
install `react-native-reanimated` rather than `react-native-gesture-handler`
2018-05-17 09:14:55 -07:00
Krzysztof Magiera
18facf3ad3 Update README.md
Update link to the video
2018-05-17 17:38:33 +02:00
Krzysztof Magiera
897a55eb3c Merge pull request #2 from joefazz/patch-1
Update README.md
2018-05-17 14:51:49 +02:00
Joe Fazzino
9761146ad0 Update README.md
Just fixed a couple of typos. Love the project :)
2018-05-17 12:11:47 +01:00
Krzysztof Magiera
00021b1de0 Bump version -> alpha.2 2018-05-17 10:56:38 +02:00