@crownie/rnui
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @crownie/rnui

Weekly Downloads

1

Version

1.1.1

License

none

Unpacked Size

1.02 MB

Total Files

178

Last publish

Collaborators

  • crownie