Commit Graph

25 Commits

Author SHA1 Message Date
William Candillon
6df9a32531 📚Add unit to cos() and sin() (#130)
Probably not super important because these functions are symmetric with `Math.cos` and `Math.sin` but I thought maybe some people might find it useful.
2018-11-13 11:16:18 +00:00
sebryu
d6bc5c70f1 Updated name of library in readme file (#126) 2018-10-25 13:03:52 +02:00
Michał Osadnik
b7241bca22 Native event as a function (#83)
## Motivation 
I found it pretty fancy to write `nativeEvent` (or some field of `nativeEvent`) as a function which is evaluating on each event's frame.

## Changes
Because it must be done fully natively I do not relate `nativeEvent` function with  any View but use list of `AlwaysNodes` instead, which may seems to be similar to `Animated.Code` and behave conceptually in the same way.
On executing code it performs "evalution" which fill required (by function) fields of `nativeEvent` by `Animated.Value`s and connect it to `AlwaysNode`. I decided to use `Proxy` to manage it, but it is not supported currently by Android because of anscient version of JSC, which is going to be replaced soon (kindly ping @pmlocek), so I have done some kind of case-specic polyfill.
merge firstly: https://github.com/kmagiera/react-native-gesture-handler/pull/287
2018-09-28 13:33:03 +02:00
Michał Osadnik
6b2a6bbf77 Debug node improvements (#104)
If there's expo used or debugger enabled RNR's  `debug` node  is supposed to show messages in console/terminal.
RNR should should logs only in `__DEV__` mode
2018-09-20 11:55:29 +02:00
Michał Osadnik
59eb8108b5 Animated code (#77)
## Motivation
Logic of evaluation was strictly connected with views but it should not be like because some logic could be abstracted from views

## Changes 
Add `Animated.Code` which behaves like view, but indeed is not related to any layout.
2018-08-20 19:09:51 +02:00
Michał Osadnik
06b03a8461 Use strings as value (#53) 2018-08-16 17:09:13 +02:00
Simon Trény
741cb30fea Implement onChange() as a derived function (#58) 2018-08-15 10:14:20 +02:00
Raúl Gómez Acuña
b3f805e193 Add new derived nodes: floor and ceil (#66) 2018-08-13 18:50:55 +02:00
Krzysztof Magiera
9e93addf4c Document 2018-08-02 18:58:21 +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
Serge Lebedev
938e1ca4dc Fix typos in README (#39) 2018-07-17 14:51:17 +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
3821486010 Fix typo (#12)
* Update README.md

* Update README.md
2018-05-29 13:18:31 +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
Alican Çubukçuoğlu
83998b56b2 Fix typos in README 2018-05-19 13:15:30 -07: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
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
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
54f02cdb99 Docs 2018-05-17 00:26:20 +02:00
Krzysztof Magiera
cb0a2680a8 Initial commit. 2018-04-25 11:22:32 +02:00