rnmui
v1.0.0
Published
React Native Minimalistic UI Library
Downloads
1
Maintainers
Readme
rnmui
React Native Minimalistic UI Library with barebones components to easily create any UI you want
Documentation :
Demo :
Steps to install :
npm install rnmui
or
yarn add rnmui
import { Block, Typography, Picture } from "rnmui";
Usage :
import React from "react";
import { ScrollView, StyleSheet } from "react-native";
import { Block, Typography, Picture, Container } from "rnmui";
function App() {
return (
<Container backgroundColor={"#f2f2f2"}>
<Block backgroundColor={"white"} elevation={5}>
<Typography
fontSize={22}
color={"black"}
fontWeight={"bold"}
textAlign={"center"}
marginVertical={20}
>
Kitchen Sink
</Typography>
</Block>
<ScrollView
style={styles.scrollView}
showsVerticalScrollIndicator={false}
>
<Block marginHorizontal={20}>
<Typography
fontSize={16}
color={"black"}
fontWeight={"bold"}
marginVertical={20}
>
1. Block
</Typography>
<Block
backgroundColor={"orange"}
height={100}
width={100}
elevation={10}
/>
</Block>
<Block marginHorizontal={20}>
<Typography
fontSize={16}
color={"black"}
fontWeight={"bold"}
marginVertical={20}
>
2. Typography
</Typography>
<Typography fontSize={48} fontWeight={"bold"} color={"red"}>
RNMUI
</Typography>
</Block>
<Block marginHorizontal={20}>
<Typography
fontSize={16}
color={"black"}
fontWeight={"bold"}
marginVertical={20}
>
3. Picture
</Typography>
<Picture
height={100}
width={100}
source={{
uri: "https://images.pexels.com/photos/305821/pexels-photo-305821.jpeg?cs=srgb&dl=pexels-scott-webb-305821.jpg&fm=jpg",
}}
/>
</Block>
</ScrollView>
</Container>
);
}
export default App;
const styles = StyleSheet.create({
scrollView: { flexGrow: 1 },
});