I'm pretty new to react-native and don't have much experience with CSS. I'm simply trying to change the font family to helvetica. I've tried multiple times and nothing changes
This is my css code:
import {StyleSheet} from "react-native";
export default StyleSheet.create({
header: {
backgroundColor:'#004D4D',
height: 35,
},
headerT: {
color: '#FFFFFF',
fontSize: 20,
fontFamily: 'Helvetica',
textAlign: 'center',
justifyContent: 'center',
},
body: {
backgroundColor:'#E6FFFF',
flex:1,
},
})
This is the page I'm trying to amend
import React, { Component } from 'react';
import { Text, View, Button } from 'react-native';
import styles from "../style/css";
class HomeScreen extends Component{
render(){
return(
<View style={styles.body}>
<View style={styles.header}>
<Text style={styles.headerT}>Home Screen</Text>
</View>
</View>
);
}
}
export default HomeScreen;
This is my directory