Escolar Documentos
Profissional Documentos
Cultura Documentos
// APP.JS
setCustomText(customTextProps);
setCustomTextInput(customTextProps);
return (
<SafeAreaView style={styles.container}>
<Text style={styles.header}>How to Customize Fonts in React Native</Text>
<Text style={styles.textDefaultFont}>
This is the default font (GoodFeelingSans)
</Text>
<Text style={styles.textDifferentFont}>
This is a different font (Dan'sDisneyUI)
</Text>
<TextInput value="This input has default font" />
<TextInput
value="This input has a different font"
style={styles.inputDifferentFont}
/>
</SafeAreaView>
);
};
// STYLES.JS
React Native 1
header: {
fontSize: 18,
fontWeight: 'bold',
margin: 15,
textAlign: 'center',
},
inputDifferentFont: {
fontFamily: differentFont,
},
textDefaultFont: {
fontSize: 16,
marginVertical: 15,
textAlign: 'center',
},
textDifferentFont: {
fontFamily: differentFont,
fontSize: 16,
marginVertical: 15,
textAlign: 'center',
},
});
# Limpar gradle
cd android && ./gradlew clean && ./gradlew :app:bundleRelease
# Gerar Chave
keytool -genkey -v -keystore JASPI.keystore -alias your_key_alias -keyalg RSA -keysize 2048 -validity 10000
// Gerar app
cd android && ./gradlew bundleRelease && cd .. cd android && ./gradlew assembleRelease && cd ..
android > app > build > outputs > bundle > release
React Native 2