0.1.0 • Published 7 months ago
skysolo-x v0.1.0
Shadrn Ui - React Native Ui Library
Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
Installation
npm install shadrn-ui
Provider
import { ThemeProvider } from 'shadrn-ui';
import HomeScreen from '@app/HomeScreen';
export default function App() {
return (
<ThemeProvider>
<HomeScreen/>
<ThemeProvider>
);
}
Usage
import { View, Text, Button } from 'react-native';
import React from 'react';
import { useTheme } from 'shadrn-ui';
export default function HomeScreen() {
const { currentTheme, toggleTheme, themeScheme } = useTheme();
return (
<View style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: currentTheme.background,
}}>
<Button title={`switch to ${themeScheme === 'light' ? 'dark' : 'light'} mode`}
onPress={toggleTheme} />
</View>
);
}
Preview
Features
- Support
React Navigation
Integration, read more. - Compatible with
Expo
. - Accessibility support.
- Written in
TypeScript
. - Read more.
Getting Started
Check out the documentation website.
Author
Support
if you are looking for a private support or help in customizing the experience, then reach out to me on Twitter @akashmondal.