1.1.1 • Published 3 years ago

@crownie/rnui v1.1.1

Weekly downloads
1
License
-
Repository
-
Last release
3 years ago

##Installation Install package

npm i @crownie/rnui

React Native Cli

Install dependency

npm i react-native-safe-area-context

##Expo Install dependency

expo install react-native-safe-area-context

Font Icon

expo install expo-font

load the font using the useFonts hook

import {useFonts} from 'expo-font';
import {MatIcon} from '@crownie/rnui';

export default (props) => {
  let [fontsLoaded] = useFonts({
    'Inter-Black': require('./assets/fonts/Inter-Black.otf'),
  });

  const [fontLoaded] = useFonts({
    'Material Icons': require('@crownie/rnui/assets/fonts/MaterialIcons.ttf'),
    MaterialCommunityIcons: require('@crownie/rnui/assets/fonts/MaterialCommunityIcons.ttf'),
  });

  return (
    <View>
      <MatIcon name="add" />
    </View>
  );
};