React native 在选项卡之间移动时,本机屏幕白色闪烁

React native 在选项卡之间移动时,本机屏幕白色闪烁,react-native,react-navigation,React Native,React Navigation,我正在开发一个应用程序,我正在使用底部选项卡栏,其中有StackNavigators。当我切换屏幕时,屏幕变白了,好像它们正在加载。但我只想它没有加载动画或过渡。我只想让它像whatsapp或instagram一样,这样我就可以在屏幕之间切换,但我需要为我的应用程序设置一个标题 从“React”导入React; 从“./屏幕/新闻”导入新闻; 从“./屏幕/收藏夹”导入收藏夹; 从“./screens/NewRecipe”导入新配方; 从“./筛网/配料”进口配料; 从“./屏幕/配置文件”导

我正在开发一个应用程序,我正在使用底部选项卡栏,其中有StackNavigators。当我切换屏幕时,屏幕变白了,好像它们正在加载。但我只想它没有加载动画或过渡。我只想让它像whatsapp或instagram一样,这样我就可以在屏幕之间切换,但我需要为我的应用程序设置一个标题

从“React”导入React;
从“./屏幕/新闻”导入新闻;
从“./屏幕/收藏夹”导入收藏夹;
从“./screens/NewRecipe”导入新配方;
从“./筛网/配料”进口配料;
从“./屏幕/配置文件”导入配置文件;
从“@react-navigation/native”导入{NavigationContainer}”;
从“@react navigation/material bottom tabs”导入{createMaterialBottomTabNavigator}”;
从“@expo/vector icons”导入{MaterialIcons}”;
从“反应本机安全区域上下文”导入{SafeAreaView};
从“@react navigation/stack”导入{createStackNavigator};
导出默认函数AppScreen(){
const Tab=createMaterialBottomTabNavigator();
const newstack=createStackNavigator();
const-FavoritesStack=createStackNavigator();
const NewRecipeStack=createStackNavigator();
const IngredientsStack=createStackNavigator();
const ProfileStack=createStackNavigator();
函数NewsNav(){
返回(
);
}
函数FavoritesNav(){
返回(
);
}
函数NewRecipeNav(){
返回(
);
}
函数IngredientsNav(){
返回(
);
}
函数ProfileNav(){
返回(
);
}
返回(
({
tabBarIcon:({})=>{
让我来;
如果(route.name==“News”){
iconName=“语言”;
}else if(route.name==“Favoriten”){
iconName=“星星边框”;
}else if(route.name==“Hinzufügen”){
iconName=“添加圆轮廓”;
}else if(route.name==“Zutaten”){
iconName=“购物车”;
}else if(route.name==“profile”){
iconName=“person”;
}
返回(
);
},
})}
禁忌选项={{
activeTintColor:“绿色”,
}}
barStyle={{backgroundColor:#272727}}
>
);

}
我用sceneAnimationEnabled={false}修复了它,但是现在头标题有问题,没有修复。我用sceneAnimationEnabled={false}修复了它,但是现在头标题有问题,没有修复