rnmuilib
v0.0.7
Published
React Native Minimalistic UI Library
Downloads
7
Maintainers
Readme
rnmuilib
React Native Minimalistic UI Library with barebones components to easily create any UI you want
Documentation :
Web Demo :
https://snack.expo.dev/@fateh999/rnmuilib
Demo :
Steps to install :
npm install rnmuilib
or
yarn add rnmuilib
import { Block, Typography, Picture } from "rnmuilib";
Usage :
import React from "react";
import { ScrollView, StyleSheet } from "react-native";
import { Block, Typography, Picture, Container, Center, Touch } from "rnmuilib";
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>
<Block marginHorizontal={20}>
<Typography
fontSize={16}
color={"black"}
fontWeight={"bold"}
marginVertical={20}
>
4. Touch
</Typography>
<Touch
borderRadius={10}
height={50}
backgroundColor={"lightblue"}
onPress={() => {}}
>
<Center flex={1}>
<Typography color={"black"} fontWeight={"bold"}>
Click Me
</Typography>
</Center>
</Touch>
</Block>
<Block height={50} />
</ScrollView>
</Container>
);
}
export default App;
const styles = StyleSheet.create({
scrollView: { flexGrow: 1 },
});