Я использовал <Animated.View>
раньше, , но как сделать I-100 * * в пределах static navigationOptions
static navigationOptions = ({ navigation }) => {
const { params = {} } = navigation.state;
const usernameTitle = navigation.getParam("usernameValue") || "";
return {
-->> title: "Welcome " + usernameTitle,
headerLeft: <View />,
headerStyle: {
backgroundColor: "#6db6d6",
height: 50
},
headerForceInset: { top: "never" },
headerTitleStyle: {
textAlign: "center",
flex: 1,
color: "black",
fontWeight: "bold"
},
headerRight: (
<TouchableOpacity style={styles.btn} onPress={params.removeItemValue}>
<Text style={styles.btnText}>Log out</Text>
</TouchableOpacity>
)
};
};