1.0.1 • Published 4 years ago
react-native-responsive-web v1.0.1
Help with maintenance would be appreciated!
If interested please send me an email: rashediq6al@gmail.com
Contents
react-native-responsive-web
react-native-responsive-web is a small library that provides one component and one simple methods so that React Native developers can code their UI elements fully responsive for web. No external library needed.
Give it a try and make your life simpler!
Installation
Npm
$ npm install react-native-responsive-web
Yarn
$ yarn install react-native-responsive-web
Expo
$ expo install react-native-responsive-web
Examples
1. How to use Container
import React from "react";
import { View, Text } from "react-native";
// Import module
import { Container } from "react-native-responsive-web";
const App = () => {
return (
<Container>
{"All component must inside it"}
</Container>;
)};
export default App;
2. How to use useWindowState
import React from "react";
import { View, Text } from "react-native";
// Import module
import { Container, useWindowState } from "react-native-responsive-web";
const App = () => {
const windowState = useWindowState();
return (
<Container>
{"All component must inside it"}
</Container>;
)};
export default App;
Pull
Pull requests are welcome! Please make the Pull Request to development
branch though and not main
. Thanks.