2
I’m having a hard time adding a font to my React Native project. I have tried with many tutorials but none fits well in my case, and several do not work.
This is where I define my already stylized component (I’ll call Archive1.JS)
import styled from 'styled-components/native';
export const Title = styled.Text`
font-weight: bold;
color: #444;
margin-bottom: 8px;
`;
This is where I use the component I defined above (which I’m going to call Arquivo2.JS)
import {Title} from '../Arquivo1.JS';
export default function Login() {
return (
<Title> Teste </Title>
);
}
It is attached in the post my folder structure, and the folder with my fonts
Thanks man, you’ve helped me so much!!!
– user188062
I’m glad he helped you ! For nothing :)
– Leonardo Leite