1
votes

I'm using Appbar component of react-native-paper in React Native app. back click is working fine but app icon is not coming check screenshot. Please help me .

<Appbar.Header style={{ backgroundColor: '#fff' }}>
         <Appbar.BackAction onPress={this._goBack} />
         <Appbar.Content
                 title="Login" />
</Appbar.Header>

enter image description here

Please help how can convert it in back button. I'm following this artilce https://callstack.github.io/react-native-paper/appbar-header.html

2
Can you give some more details? Because your code is ok and they run perfectly in my machine. - Masuk Helal Anik

2 Answers

2
votes

You need to add

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

in android/app/build.gradle

(cf react-native-vector-icons )

1
votes

react native paper uses react-native-vector-icons npm package, you need to manually link this package to your react native paper project using "react-native link react-native-vector-icons". do this and re build your project using "react-native run-android". react-native-vector-icons