Small Package used for responsiveness in your react native app
npm install rn-responsive-screen
Small Package used for responsiveness in your react native app !
NPM Package »
sh
npm install --save rn-responsive-screen
`
* yarn
`sh
yarn add rn-responsive-screen
`
Usage
`javascript
import { StatusBar } from "expo-status-bar";
import React from "react";
import { StyleSheet, Text, View } from "react-native";
import { widthToDp, heightToDp } from "rn-responsive-screen";
export default function App() {
return (
Open up App.js to start working on your app!
);
}
const styles = StyleSheet.create({
test: {
marginTop: heightToDp("10%"),
width: widthToDp("30%"),
},
});
`
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
1. Fork the Project
2. Create your Feature Branch
3. Commit your Changes
4. Push to the Branch
5. Open a Pull Request
License
Distributed under the MIT License. See LICENSE` for more information.