尝试将旧的React Navigation 1.x更新到当前版本5.x。
我需要显示不同的选项卡图标,具体取决于1.x版本中使用的df[and((df[column] == 1) for column in df.columns])]
中的值。此值是使用navigation.dispatch(data)在屏幕之一中设置的。
这是用于导航1.x的简化代码:
filtered_df = [ column for column in df if (column.A == 1) and (column.B == 1)]
如何进行更改才能与React Navigation v.5.x一起使用?还是我只能使用React.Context?