Reactjs 无法在具有反应导航液转换的屏幕之间导航
我在react native中制作一个应用程序,并发现库中有一些动画等等。我还需要在屏幕之间导航。我遇到的问题是,我无法在两个有转换的屏幕之间导航,我遇到以下错误:Reactjs 无法在具有反应导航液转换的屏幕之间导航,reactjs,react-native,react-navigation,expo,Reactjs,React Native,React Navigation,Expo,我在react native中制作一个应用程序,并发现库中有一些动画等等。我还需要在屏幕之间导航。我遇到的问题是,我无法在两个有转换的屏幕之间导航,我遇到以下错误: TypeError: TypeError: undefined is not an object (evaluating 'this._callListeners.bind') - node_modules\react-native\Libraries\Animated\src\AnimatedEvent.js:94:46 in A
TypeError: TypeError: undefined is not an object (evaluating 'this._callListeners.bind')
- node_modules\react-native\Libraries\Animated\src\AnimatedEvent.js:94:46 in AnimatedEvent
- node_modules\react-native\Libraries\Animated\src\AnimatedImplementation.js:504:42 in event
- ... 37 more stack frames from framework internals
但是在“正常”屏幕(没有过渡)和有过渡的屏幕之间导航没有问题
App.tsx
import { FluidNavigator } from 'react-navigation-fluid-transitions';
import { createSwitchNavigator, createAppContainer } from 'react-navigation';
import Test1 from "./views/TestOne"
import Test2 from "./views/TestTwo"
const store = createStore()
configure({ enforceActions: "always" })
export default observer(() => {
const [state, setState] = useState({ isReady: false })
const AppSwitchNavigator = FluidNavigator({
screen1: { screen: Test1 },
screen2: { screen: Test2 },
})
const AppContainer = createAppContainer(AppSwitchNavigator);
return (
<StoreContext.Provider value={store}>
<AppContainer />
</StoreContext.Provider>
)
})
哪里是
\u callListeners
?@hongdevelop它来自节点模块,所以我不能更改什么东西哪里是\u callListeners
?@hongdevelop它来自节点模块,所以我不能更改什么东西
<TouchableOpacity
activeOpacity={1}
style={styles.container}
onPress={() => props.navigation.navigate('screen2')}>
<Transition shared='paper'>
<View style={styles.paper} />
</Transition>
<Transition appear='horizontal'>
<View style={styles.headerContainer}>
<Text style={styles.header}>THE TEN</Text>
<Text style={styles.subheader}>AIR JORDAN I</Text>
</View>
</Transition>
<Transition shared='shoe'>
<Image style={styles.shoe} source={require('../../assets/img/shoe.png')} />
</Transition>
</TouchableOpacity>
"react-navigation": "^3.0.0",
"react-navigation-fluid-transitions": "^0.3.2",