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
- bugfix for different entrance & leave bearing
- add ability remove child after disappearance
- optional ability to set the distance for directional bearing movement
Copy file name to clipboardexpand all lines: README.md
+11-4
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
4
4
FadeView is a handy component written in [TypeScript](https://www.typescriptlang.org/) in order to handle the fade animations more easier for every react native component.
{/** any components can be used here in order to have the fade animation */}
33
+
<FadeView
34
+
visible={visible}
35
+
bearingMoveDistance={20}
36
+
leaveBearing={Bearing.Top}
37
+
entranceBearing={Bearing.Bottom}>
38
+
{/** any components can be used here in order to have the fade animation */}
34
39
</FadeView>
35
40
);
36
41
}
@@ -46,7 +51,9 @@ here is the properties and the descriptions of it:
46
51
| visible ||**it's required**|`boolean`|`YES`| changing this param would initiate the fade animation |
47
52
| shouldEnterWithAnimation |`false`|`boolean`|`NO`| if it's `true`, then the first state of `visible` would be presented by animation |
48
53
| style |`undefined`|`ViewStyle`|`NO`| optinal style for the fadeview itself |
49
-
| children |`undefined`| `JSX.Element | JSX.Element[]` |`NO`| child component(s) in order to have the fade animation |
54
+
| bearingMoveDistance| 50 |`number`|`NO`| option distance when you pass the directional Bearing for entrance or leave |
55
+
| removeChildrenAfterDisapearance|`false`|`boolean`|`NO`| you can choose if you want the children view to be removed after disappearance |
56
+
| children |`undefined`|`JSX.Element`|`JSX.Element[]`|`NO`| child component(s) in order to have the fade animation |
50
57
| entranceBearing |`Bearing.Center`|`Bearing`|`NO`| entrance animation with can be determined by `Bearing` enum from the lib, values: `Top`, `Bottom`, `Left`, `Right` , `Center`|
51
58
| leaveBearing |`Bearing.Center`|`Bearing`|`NO`| leave animation with can be determined by `Bearing` enum from the lib, values: `Top`, `Bottom`, `Left`, `Right` , `Center`|
52
59
| fadeOutScale | 1.1 |`number`|`NO`| scale of fade out state of the animation |
0 commit comments