Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shipt/react-native-tachyons

Package Overview
Dependencies
Maintainers
11
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shipt/react-native-tachyons

Tachyons for RN

  • 0.7.0
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
11
Weekly downloads
 
Created
Source

react-native-tachyons

Installation

# with npm
npm i --save @shipt/react-native-tachyons

# with yarn
yarn add @shipt/react-native-tachyons

Configuration

You can compose your own styles and pass them into the build process as needed/wanted. The build process returns the function for getting the configured styles later.

// styleConfig.js

import Tachyons from '@shipt/react-native-tachyons';
import { StyleSheet } from 'react-native';

const rem = 16;

const colors = {
  white: '#ffffff',
  black: '#000000'
};

const styles = {
  'gutter-h': { paddingLeft: 16, paddingRight: 16 },
  'gutter-v': { paddingTop: 16, paddingBottom: 16 }
};

// export the returned getStyle function
export default Tachyons({
  rem,
  colors,
  styles,
  StyleSheet
});

And then...

// another file
import getStyle from '../path/to/styleConfig';

FAQs

Package last updated on 13 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc