react native header
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>
);
}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' }}
/>
Also in JavaScript:
- vue for loop
- clearing cookie in js
- input show validation message
- set readonly in javascript
- jquery on dom change
- terminal tree command
- google script range get cell values
- new create react app
- document ready js
- function para mter js
- javascript append list
- update state in react
- pyspark from_json example
- add dev dependency yarn
- how to get today date in javascript
- javascript array flatten
- javascript math.random from list
- javascript allow default
- Should I learn Javascript?
- removing first item array js
- javascript base64 encode string
- javascript when button clicked different text appears
- js set iframe src
- Convert JS Object to form data Ask Question