How do I hide the shadow under react-navigation headers?

后端 未结 14 981
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-03 21:30

How do I hide the shadow under react-navigation headers?
They look like this.

14条回答
  •  无人及你
    2021-02-03 21:44

    I'm using react navigation v5, i use this code :

     const HomeStackScreen = ({navigation}) => (
      
         ,
            headerRight: () => ,
            headerTitleAlign: 'left',
          }}
        />
        
      
    );
    

    put shadowOpacity and elevation inside headerStyle

提交回复
热议问题