react-native-rescomponent
React Native Module that makes your react-native components responsive and fit to various devices Edit
Getting Started
Installing the module
npm i react-native-rescomponent
Other Way
If you want add to dependencies in package.json
npm i --save react-native-rescomponent
How to use
Import the module
Import with alias for simple call
Implement
Required Parameter
// Use percentage as String
Or
// Use percentage as Integer
Inside Container component
{ return <Container style= width: height: > ... </Container> }
Inside View component
{ return <Container style=width: height: > <Content contentContainerStyle= justifyContent: 'center' alignItems:'center' flex: 1 > <View style=width: height: backgroundColor: "blue"> ... </View> </Content> </Container> }
Inside Container component
{ return <Container style= width: height: > <Content contentContainerStyle= justifyContent: 'center' alignItems:'center' flex: 1 > <View style=width: height: backgroundColor: "blue"> <Text style=fontSize: >Responsive Text</Text> </View> </Content> </Container> }