1// This using the @react-navigation/material-top-tabs from the
2// stackoverflow source...
3export default class Login extends Component {
4 static navigationOptions = {
5 header: null
6 }
7}
8// Didn't work for me but it did give me a clue. I ended up
9// setting the header to return a basically a blank
10setTimeout(() => {
11 navigation.setOptions({
12 header: () => (
13 <View style={{ backgroundColor: "white" }}>
14 <Text
15 style={[
16 { color: "white" },
17 Platform.OS === "android" ? { fontSize: 20 } : { fontSize: 1 }
18 ]}
19 >
20 .
21 </Text>
22 </View>
23 )
24 });
25 }, 1);
26// Note: in iOS sumulation, I had to tweak the initial fontSize
27// to get it to not show on reload... Hence the addition of the
28// setTimeout. Yes there is a blink, but now at least I don't
29// have to do the tweak to start with. Not sure if this really
30// works on an iOS device. Don't have a real one to test on.
31