0.1.7 • Published 2 years ago

@scienceartmagic/rfc v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

RFC

Reanimated Fast Context

Jack Herrington's Fast Context (fast-context-generic example), now with an additional version based on Reanimated's useSharedValue.

As of v0.1.0, calling the returned useFastContext hook of createFastContext/createReanimatedContext without an argument results in a default selector of (store) => store (in other words, "selects" the entire object you supplied to initialize createFastContext).

Install

npm i or yarn add @scienceartmagic/rfc react-native-reanimated

Technically, Reanimated is only required if you want to use createReanimatedContext() (which uses Reanimated's useSharedValue() hook under the hood). The default export createFastContext() (not far from @jherr's original version), which uses React's useRef() hook under the hood, has no other external dependencies.

0.2.0

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago