Answers for "react native header style"

1

react native header

npm i react-native-elements --save
npm i --save react-native-vector-icons
# link
react-native link react-native-vector-icons

import { Header } from 'react-native-elements';

<Header
     leftComponent={{ icon: 'menu', color: '#fff' }}
     centerComponent={{ text: 'MY TITLE', style: { color: '#fff' } }}
      rightComponent={{ icon: 'home', color: '#fff' }}
/>
Posted by: Guest on July-23-2020
2

react native header style

function StackScreen() {
  return (
    <Stack.Navigator>
      <Stack.Screen
        name="Home"
        component={HomeScreen}
        options={{
          title: 'My home',
          headerStyle: {
            backgroundColor: '#f4511e',
          },
          headerTintColor: '#fff',
          headerTitleStyle: {
            fontWeight: 'bold',
          },
        }}
      />
    </Stack.Navigator>
  );
}
Posted by: Guest on April-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language