style={{backgroundColor: 'transparent'}} onPress= {()
=> navigation.navigate('CurrRes')}> 我不明白为什么导航不能在我的Eventcard中被评估,并且导航不工作。(是,在第一个文件中导入导航,项目运行,但当按下其中一个平面列表项时会崩溃) 我得到的错误是 undefined is not an object (evaluating 'navig
这个问题类似于这个Access state values from parent using reactnative navigation 除了在链接的问题中它使用默认的react导航头配置之外,我使用的是一个自定义的backgroundColor: colors.darkThemeBackground, headerTintColor: colors.whiteText,
}; 父级包含一个平面列表,在我的自定义标题组件