-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from iway1/1/easing-prop
Added easing prop
- Loading branch information
Showing
8 changed files
with
86 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import Animated, { Easing } from "react-native-reanimated" | ||
|
||
export type CommonProps = { | ||
/** | ||
* Duration of the keyboard avoiding animation. | ||
*/ | ||
animationTime?: number, | ||
/** | ||
* Extra space between the keyboard avoiding element and the keyboard. | ||
*/ | ||
extraSpace?: number, | ||
/** | ||
* Easing function to use. Can be any `react-native-reanimated` easing function. Defaults to Easing.quad. | ||
* Open animation will use Easing.out(animationEasing), close animation will use Easing.in(animationEasing). | ||
*/ | ||
animationEasing?: Animated.EasingFunction | ||
} | ||
|
||
export const defaultCommonProps = { | ||
animationTime: 150, | ||
animationEasing: Easing.quad, | ||
extraSpace: 20, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export const DEFAULT_EXTRA_SPACE = 20 | ||
export const DEFAULT_ANIMATION_TIME = 150 | ||
import { Easing } from "react-native-reanimated" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters