Skip to content

Latest commit

 

History

History
66 lines (39 loc) · 1.01 KB

File metadata and controls

66 lines (39 loc) · 1.01 KB

react.force.base.theme

React Native components (iOS/Android) for Salesforce Basic UI Theme.

Attention: This is an experimental project published under ForceDotComLabs:

  1. work in progress
  2. we need your feedback

Setup

  1. add to an existing React Native project:

npm install git+ssh://git@github.com:ForceDotComLabs/react.force.base.theme.git --save

  1. if RNPM is not yet installed:

npm install rnpm -g

  1. link the library:

rnpm link

Usage

Import statement:

import Theme from 'react.force.base.theme';

Button Brand JSX code:

<Theme.Buttons.Base.Brand 
  label="Button Brand" 
  onPress={()=>{
    alert('Clicked!')
  }} />

Result:

Branded Button

Utility Icon JSX code:

<Theme.Icons.Utility name="like" />

Result:

Utility Icon