Skip to content

Instantly share code, notes, and snippets.

@housseindjirdeh
Last active August 13, 2017 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save housseindjirdeh/25a022bbe60f35e63b0d64ceb9b6a3db to your computer and use it in GitHub Desktop.
Save housseindjirdeh/25a022bbe60f35e63b0d64ceb9b6a3db to your computer and use it in GitHub Desktop.
// styles directory, index.js
import NativeTachyons, { styles } from 'react-native-style-tachyons';
import { StyleSheet } from 'react-native';
import {
percentageWidths,
customWidths,
backgroundColors,
....
} from './custom';
export const s = {
...styles,
...percentageWidths,
...customWidths,
...backgroundColors
};
// in any component
import { s } from 'styles';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment