README
react-native-noqoo
This package has been created to export common noqoo app modules such as components, theme, hooks, etc.
Installation
npm install react-native-noqoo react-native-extended-stylesheet react-native-vector-icons react-native-localization @react-native-community/async-storage react-native-safe-area-context
Install the @types
package for the respective packages.
Create a assets/fonts
folder in the root directory and add the Poppins font family. Create a new file react-native.config.js
if it doesn't exist and add the following:
module.exports = {
assets: ['./assets/fonts/'],
};
In your root file, configure EStylesheet like so:
import { DEFAULT_STYLE } from 'react-native-noqoo';
EStyleSheet.build(DEFAULT_STYLE);
Follow the post Integrate React Native Vector Icons to start using react native vector icon. If you face issues related to the font file missing, then load the font before using it. For example, if Ionicons
is missing, run Ionicons.loadFont()
in the app root file, of course, after importing it
Usage
import { BGHeader } from "react-native-noqoo";
// ...
const YourComponent = () => (
<BGHeader><View><Text>Hello Noqoo</Text></BGHeader>
);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT