Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation Header not rendering in properly #1977

Closed
hadihassan09 opened this issue Dec 23, 2020 · 4 comments
Closed

Navigation Header not rendering in properly #1977

hadihassan09 opened this issue Dec 23, 2020 · 4 comments

Comments

@hadihassan09
Copy link

hadihassan09 commented Dec 23, 2020

Issue Description

When rendering the navigation header, 2 headers are rendered over each other.

Steps to Reproduce / Code Snippets

Navigation Component:

                <StudntsChatStack.Screen
                    name="ChatGroup"
                    component={ChatScreen}
                    options={{
                        title: 'Chat Group',
                        headerTitleAlign: 'center',
                        headerTitleStyle: {
                            color: '#2e64e5',
                            fontFamily: 'Kufam-SemiBoldItalic',
                            fontSize: 18
                        },
                        headerStyle: {
                            backgroundColor: '#2e64e515',
                            shadowColor: '#fff',
                            elevation: 0,
                        },
                        headerBackTitleVisible: true,
                        headerBackImage: () => (
                            <View style={{ marginLeft: 15 }}>
                                <Ionicons name="arrow-back" size={25} color="#2e64e5" />
                            </View>
                        ),
                    }} />

Chat Component:

    render() {
        return (
            <GiftedChat
                alignTop
                keyboardVerticalOffset={true}
                renderUsernameOnMessage={true}
                messages={this.state.messages}
                onSend={this.db.send}
                user={this.user}
            />
        );
    }

Example Image

Expected Results

Additional Information

  • Nodejs version: v14.10.1
  • React version: 16.13.1
  • React Native version: 0.63.4
  • react-native-gifted-chat version: 0.16.3
  • Platform(s) (iOS, Android, or both?): Android
  • TypeScript version: [FILL THIS OUT]
@smit-luvani
Copy link

@hadihassan09 Could you please share your solution? I am facing the similar issue. Attached screenshot (https://i.imgur.com/qe5uOFe.png).
image

@Neeraj-WebNeuron
Copy link

Please add
isStatusBarTranslucentAndroid={true}
and refresh the app

@smit-luvani
Copy link

I tried but did not work. and so downgraded version.

#2558 (comment)

@MarkKewley
Copy link

The isStatusBarTranslucentAndroid={true} did work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants