diff --git a/src/navigators/__tests__/__snapshots__/NestedNavigator-test.js.snap b/src/navigators/__tests__/__snapshots__/NestedNavigator-test.js.snap index 9f950b6..1a93372 100644 --- a/src/navigators/__tests__/__snapshots__/NestedNavigator-test.js.snap +++ b/src/navigators/__tests__/__snapshots__/NestedNavigator-test.js.snap @@ -44,7 +44,6 @@ exports[`Nested navigators renders succesfully as direct child 1`] = ` = 0.56, then we have - // to call position.__makeNative(). Unclear to me what is happening here - // so temporarily commented this out. - // - // const active = position.interpolate({ - // inputRange: [index, index + 1 - EPS, index + 1], - // outputRange: [1, 1, 0], - // extrapolate: 'clamp', - // }); + const active = position.interpolate({ + inputRange: [index, index + 1 - EPS, index + 1], + outputRange: [1, 1, 0], + extrapolate: 'clamp', + }); return ( {children} diff --git a/src/views/StackView/screens.js b/src/views/StackView/screens.js index fce1d3f..914f215 100644 --- a/src/views/StackView/screens.js +++ b/src/views/StackView/screens.js @@ -1,6 +1,19 @@ +import React from 'react'; import { Animated, View } from 'react-native'; const ScreenContainer = View; -const Screen = Animated.View; + +class Screen extends React.Component { + render() { + // Filter out active prop in this case because it is unused and + // can cause problems depending on react-native version: + // https://github.com/react-navigation/react-navigation/issues/4886 + + /* eslint-disable no-unused-vars */ + const { active, onComponentRef, ...props } = this.props; + + return ; + } +} export { ScreenContainer, Screen };