Customization
1. Colors​
- src/configs/Colors.ts
Add or edit the colors you want
const Colors = {
white: '#FFFFFF',
black: '#000000',
};
export default Colors;
2. Theme Variables​
- src/configs/Theme.ts
This allows you to easily create themed components by using theme variables
export interface ITheme {
background: ColorValue | string;
text: ColorValue | string;
}
export const themes = {
dark: {
background: Colors.black,
text: Colors.white,
},
light: {
background: Colors.white,
text: Colors.black,
},
};
Declare Custom Component​
Let's declare a View and set it backgroundColor to any color of current theme.
import React from 'react';
import {View} from 'react-native';
import {useTheme} from 'configs/Theme';
interface AwesomeViewProps {}
const AwesomeView = ({...rest}: AwesomeViewProps) => {
const {theme} = useTheme();
return <View {...rest} style={[{backgroundColor: theme.background}]} />;
};
export default AwesomeView;
OUR PRODUCTS:​
- Fairpay – Split Bill React Native: https://1.envato.market/Kez64a
- Monsy Money Manager Full Application: https://1.envato.market/do9d3k
- Runner Flutter Full Application: https://1.envato.market/qnAOaq
- Triplan Flutter Template: https://1.envato.market/doyJdK
- Stacy Roommate Flutter Template: https://1.envato.market/YgR1Xj
- Fitness Love: https://1.envato.market/x9kDjx
- Doctor Plus – Patient React Native: https://1.envato.market/x99yJR
- Doctor Plus – Doctor React Native: https://1.envato.market/x07Bk
- Carer – Patient React Native App Template: https://1.envato.market/RzAzy
- Wala – Food React Native: http://1.envato.market/qbXgy
- Evez React Native: https://1.envato.market/emE1r
- Finany – Cashflow Manager App: https://1.envato.market/d1v17
- Imba React Native: https://1.envato.market/M3KWM
- Healer React Native: https://1.envato.market/v6BDd
- Healer Flutter: https://1.envato.market/b1xk9
- Finey React Rative: https://1.envato.market/dJQyM
- Finey Flutter: https://1.envato.market/RdB09
- Kid Draw React Native: https://1.envato.market/Z3nQk
Thank you!