You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# React Navigation Shared Element<!-- omit in toc -->
2
2
3
-
Experimental [react-native-shared-element](https://github.com/IjzerenHein/react-native-shared-element) bindings for React Navigation
3
+
Experimental [react-native-shared-element](https://github.com/IjzerenHein/react-native-shared-element) bindings for React Navigation 💫
4
4
5
-
# Work in progress, docs may not be up to date
5
+
This library is under development and is subject to API changes. At the moment only the stack navigator is supported.
6
+
As [react-navigation](https://reactnavigation.org) is alo undergoing development and possible API changes, this library provides a testing ground and working API for the v3 branch of react-navigation.
7
+
It was written as a separate library which does not require any changes to react-navigation itself.
8
+
As time progresses, the goal is to support the latest react-navigation version, a cleaner API, support `appear` and `disappear` transitions, and have the
9
+
[native extensions](https://github.com/IjzerenHein/react-native-shared-element) land in [Expo](https://expo.io/).
The `<SharedElement>` component accepts a single child and a "shared" id. The child is the element that is then available for doing shared element transitions with.
120
+
The `id` is the unique screen id by which the element an be identified.
121
+
122
+
This component is synonymous for the `<SharedElement>` component as defined in `react-native-shared-element`. Instead of a `node` it uses an `id` to create a higher
123
+
lever API which automatically ties in with the scenes created by `createSharedElementTransitioner`.
|`id`|`string`| Id that corresponds to the `id` specified in the `<SharedElement>` component |
182
+
|`sourceId`|`string`| Alternative id to use for the source element. This field an be used to create transitions between elements with different `id`s |
183
+
|`animation`| `move | fade` | Type of animation to perform (default = `move`), [see SharedElementAnimation](https://github.com/IjzerenHein/react-native-shared-element#sharedelementanimation)|
184
+
|`resize`| `auto | stretch | clip | none` | Resize behavior of the transition (default = `auto`), [see SharedElementResize](https://github.com/IjzerenHein/react-native-shared-element#sharedelementresize)|
185
+
|`align`| `auto | top-left | ...` | Align behavior of the transition (default = `auto`), [see SharedElementAlign](https://github.com/IjzerenHein/react-native-shared-element#sharedelementalign)||
186
+
187
+
188
+
## License
78
189
79
-
TODO
190
+
React navigation shared element library is licensed under [The MIT License](./LICENSE.md).
0 commit comments