React Native components (iOS/Android) for Salesforce Basic UI Theme.
- work in progress
- we need your feedback
- Badge
- Buttons
- Base 1. Brand 2. Neutral
- Icons
- Action
- Custom
- Standard
- Utility
- InputReadonly
- Menus
- ActionListItem
- Page
- PageHeader
- Text
- Tiles
- Base
- List
- add to an existing React Native project:
npm install https://github.com/forcedotcomlabs/react.force.base.theme.git --save
- link the library:
react-native link
Import statement:
import Theme from 'react.force.base.theme';
Button Brand JSX code:
<Theme.Buttons.Base.Brand
label="Button Brand"
onPress={()=>{
alert('Clicked!')
}} />
Result:
Utility Icon JSX code:
<Theme.Icons.Utility name="like" />
Result: