I tried using ToolbarAndroid component but I always get this error message
import { View, StyleSheet, Image, TouchableOpacity, ToolbarAndroid } from 'react-native';
public render() {
return (
<View>
<ToolbarAndroid
style={styles.toolbar}
title="test"
/>
<TouchableOpacity onPress={this.props.navigation.openDrawer}>
<Icon name={'md-menu'} size={30} />
</TouchableOpacity>
</View>
);
const styles = StyleSheet.create({
toolbar: {
backgroundColor: '#2196F3',
height: 56,
}});
but It works fine if I remove the ToolbarAndroid component. I tried copy pasting other codes but got same error. I'm using "react-native": "0.61.5"
version.