mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
Use int as a type for 'active' prop to make it animatable on Android
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user