Getting Started
Installation
Section titled “Installation”yarn add react-native-small-uinpm install react-native-small-uipnpm add react-native-small-uibun add react-native-small-uiWeb support
Section titled “Web support”React Native Web
Get started by adding useSmallUI hook in your App. This will enable the utilities that might be in used, detect changes and adapt the ui.
import * as React from 'react';import {View} from 'react-native';import { useSmallUI, createComponent } from 'react-native-small-ui';
const Box = createComponent(View, { backgroundColor: '#ccc'})
function App() { return ( <View> <Box marginTop={112}> <Text>Example</Text> </Box> </View> );}
export default function Main() { useSmallUI() return ( <App /> );}