We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c488ae1 commit 4d304ceCopy full SHA for 4d304ce
src/factory/index.js
@@ -78,7 +78,7 @@ const transitionFactory = (
78
): Object => {
79
return {
80
transition: this.getTransitionProperty(timeout, easing),
81
- ...staticStyles,
+ ...(this.props.staticStyles || staticStyles),
82
...transitionConfigs.reduce((style, config, index) => {
83
const startVal = getPrimitiveValue(start, index);
84
const transitionName = camelCase(config.transition);
src/types/index.js
@@ -20,6 +20,7 @@ export type TransitionConfig = {
20
21
export type TransitionProps = {
22
children: Function | Node,
23
+ staticStyles?: Object,
24
start?: ArrayOrValue,
25
end?: ArrayOrValue,
26
timeout: ArrayOrNumber,
0 commit comments