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

@loadsmart/blocks

Package Overview
Dependencies
Maintainers
20
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loadsmart/blocks

Loadsmart's React Native Components

  • 1.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
20
Created
Source

:european_castle: Blocks

Loadsmart's React Native Components

Build Status codecov npm (scoped)

Installation

$ yarn add @loadsmart/blocks
$ react-native link @loadsmart/blocks

Usage

Basic

import { Text, View } from 'react-native'
import { PrimaryButton } from '@loadsmart/blocks'

const MyComponent = () => (
  <View>
    <Text>Are you sure?</Text>
    <PrimaryButton title='Confirm' />
  </View>
)

Theming

import { Text, View } from 'react-native'
import { PrimaryButton, Theme, ThemeContext } from '@loadsmart/blocks'

const customTheme: Theme = {
  primaryColor: '#18515E'
}

const MyComponent = () => (
  <ThemeContext.Provider value={customTheme}>
    <View>
      <Text>Are you sure?</Text>
      <PrimaryButton title='Confirm' />
    </View>
  </ThemeContext.Provider>
)

Testing

yarn test

Storybook

If you want to take a look and play with the components in this repo, we have a showcase app made with React Native.

License

MIT

Contributing

RFCs

If you want to submit a "Request for comments" proposal, branch out from master (i.e.: rfc/my-feature) copy 0000-template.md to rfc/0000-my-feature.md (where 'my-feature' is descriptive. don't assign an RFC number yet), fill in the RFC and submit a PR.

If your RFC gets approved, you can then merge the PR to master.

FAQs

Package last updated on 06 Aug 2020

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