Use int as a type for 'active' prop to make it animatable on Android

This commit is contained in:
Krzysztof Magiera
2018-08-13 19:35:21 +02:00
parent b220432322
commit d6ae2caea8
3 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ export class Stack extends Component {
index === stack.length - 1 ||
(transitioning !== 0 && index === stack.length - 2);
return (
<Screen style={style} key={key} active={active}>
<Screen style={style} key={key} active={active ? 1 : 0}>
{this.props.renderScreen(key)}
</Screen>
);