0.1.6 • Published 2 years ago

@focustapps/fa-expo-boilerplate v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

fa-expo-boilerplate

description of the package

Installation

npm install @focustapps/fa-expo-boilerplate

Usage

// Use Boilerplate as the top component
// Provide a theme prop to 'Boilerplate' to customize the theme unless you want to use the default theme

import { useCachedResources, Boilerplate } from 'fa-expo-boilerplate';
import React from 'react';

export default function App() {
  const isLoadingComplete = useCachedResources();
  if (!isLoadingComplete) {
    return null;
  } else {
    return (
      <Boilerplate theme={yourThemeObject}>
        {
          // ...
        }
      </Boilerplate>
    );
  }
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT