A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
npm install --save teaset
import { replaceRegisterComponentFunction } from 'teaset'
replaceRegisterComponentFunction() // Add this line before RN register, to deploy a container for overlay like components.
AppRegistry.registerComponent('YourRNAppName', () => App)
or, put in the right place by yourself.
import { TopView } from 'teaset'
container => () => <Provider store={store}>
{/* Wrap by <TopView> as a container for overlay like components */}
<TopView>{container}</TopView>
</Provider>
In the Teaset package directory:
cd example
npm install
To run example on iOS:
react-native run-ios
To run example on Android:
react-native run-android
Tips: In the Android system, the animations is not smooth, switch to the release mode can be resolved.
Add the following code to support iPhoneX
Theme.set ({fitIPhoneX: true});
** Note: This option is false by default, don't open it if SafeAreaView is used. **
The document is being written, please refer to the example source code.
MIT