Skip to content

White Screen Flash between navigating #327

Description

@Vrunalbenke

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

This Issue is only when disablePageAnimations: false,
While navigating between tab a white screen flash(See Attached Video)

I have Also setRootViewBackgroundColor to theme color using Unistyles.setRootViewBackgroundColor and it is working properly on Start fo Application

Library version

^0.8.3

Environment info

"@bottom-tabs/react-navigation": "^0.8.3",
 "react-native-bottom-tabs": "^0.8.3",
 "react-native": "0.77.0",

Steps to reproduce

whiteScreenFlash.webm
  1. …
  2. …

Reproducible sample code

import {createNativeBottomTabNavigator} from '@bottom-tabs/react-navigation';
import Home from '../screens/home';
import Chats from '../screens/chats';
import Favorite from '../screens/favorite';
import Profile from '../screens/profile';
import {Colors} from '../constants/color';

const BottomTab = createNativeBottomTabNavigator({
  initialRouteName: 'Home',
  screenOptions: {
    lazy: true,
  },
  labeled: true,
  tabBarActiveTintColor: Colors.deepOrange,
  tabBarInactiveTintColor: Colors.bottomIcon,
  tabBarStyle: {
    backgroundColor: Colors.navyBlue,
  },
  hapticFeedbackEnabled: true,
  scrollEdgeAppearance: 'opaque',
  translucent: true,
  screens: {
    Home: {
      screen: Home,
      options: {
        tabBarIcon: () => require('../../assets/svg/home.svg'),
        tabLabelStyle: {
          fontSize: 20,
          fontFamily: 'Lexend Regular',
        },
      },
    },
    Chat: {
      screen: Chats,
      options: {
        tabBarIcon: () => require('../../assets/svg/chat.svg'),
        tabLabelStyle: {
          fontSize: 16,
          fontFamily: 'Lexend Regular',
        },
      },
    },
    Favorite: {
      screen: Favorite,
      options: {
        tabBarIcon: () => require('../../assets/svg/favorite.svg'),
        tabLabelStyle: {
          fontSize: 16,
          fontFamily: 'Lexend Regular',
        },
      },
    },
    Profile: {
      screen: Profile,
      options: {
        tabBarIcon: () => require('../../assets/svg/profile.svg'),
        tabLabelStyle: {
          fontSize: 16,
          fontFamily: 'Lexend Regular',
        },
      },
    },
  },
});

export default BottomTab;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AndroidbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions