Customize
Change Theme Colors
To change Theme colors and customize any component of the App, just follow the NativeBase procedure to do so.
Rename App
Changing application name is very easy when using CRAN. Just follow this steps:
Edit the
package.jsonand change thenameattribut.Edit the
app.jsonand change thename,description,slug,bundleIdentifierandpackageattribut.
Change App Icon, Logo and SplashScreen
To change App icon, just override
icon.pngfile located inassets/images/.To change App Logo, just override
logo.pngandheader-ogo.pngfiles located inassets/images/.To change App launch screen background, just override
splash.pngfile located inassets/images/.
Add a Custom Font
To add a new custom file follow this steps:
Copy font
.ttffile toassest/fonts/Edit
/App.jsfile and add file path loadfonts function:
async loadFonts() {
await Font.loadAsync({
Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
Roboto_light: require('./assets/fonts/Roboto-Light.ttf'),
Ionicons: require('@expo/vector-icons/fonts/Ionicons.ttf'),
Feather: require('@expo/vector-icons/fonts/Feather.ttf'),
'simple-line-icons': require('@expo/vector-icons/fonts/SimpleLineIcons.ttf'),
});
this.setState({ fontLoaded: true });
}Last updated
Was this helpful?