Add one constant file with name constants.js

Add and export your constants like this

export const DefaultColor = '#FFFFFF';
export const SelectedColor = '#DA281C';
export const UnSelectedColor = '#53A567';


Now in your view file, import these like this

import * as Constants from 'path_to_constant_file';

Now you can use these like this

Constants.DefaultColor