Native Extension ·
NativeExtension is open source framework. Essential cross-platform UI components for React Native
Here is direct link to npm package link
Here is direct link to yarn package link
Here is direct link to github link
Components
Getting Started
Setup with React Native app
Install NativeExtension
npm install native-extension --save
Compatibility Versions
NativeExtension | React Native |
---|---|
v0.0.1 | v0.57 |
Using
1. Header
; const ComponentLeft = <View style= flex: 1 alignItems: 'flex-start' > <Image source= style= resizeMode: 'contain' width: 25 height: 25 marginLeft: 10 alignSelf: 'flex-start' /> </View>; const ComponentCenter = <View style= flex: 1 > <Image source= style= resizeMode: 'contain' width: 200 height: 35 alignSelf: 'center' /> </View>; const ComponentRight = <View style= flex: 1 > <Image source= style= resizeMode: 'contain' width: 35 height: 35 marginRight: 10 alignSelf: 'flex-end' /> </View>; { return <View style=stylescontainer> <Header componentLeft = ComponentLeft componentCenter = ComponentCenter componentRight = ComponentRight navigationBarStyle= backgroundColor: '#215e79' statusBarStyle = barStyle: 'light-content' backgroundColor: '#215e79' /> </View> ; }
2. Switch
; <Switch height=40 width=300 activeText=`Active Text` inActiveText=`InActive Text` onValueChange= console/>
3. StarRating
; <StarRating max=5 initial=5 onChange= console selectedStar= unselectedStar= config= easing: Easing duration: 350 stagger=50 maxScale=16 starStyle= width: 11 height: 11 margin: 1 editable=false/>