Skip to content

Getting Started

Terminal window
yarn add react-native-small-ui

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 />
);
}