Skip to content

kgowru/react.force.base.theme

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

143 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 83.3%
  • Objective-C 9.9%
  • Java 6.8%