Getting started

Installation

Open a Terminal in your project’s folder and run,

Copy
yarn add react-native-magnus

After installing the react-native-magnus, make sure you install peer dependencies.

Copy
yarn add react-native-animatable react-native-modal react-native-vector-icons

After installing these dependencies, follow these instructions to add icons : https://github.com/oblador/react-native-vector-icons#installation

Install pods

Copy
cd ios && pod install

Usage

Wrap your root component in ThemeProvider from react-native-magnus.

Copy
import * as React from 'react';
import { AppRegistry } from 'react-native';
import { ThemeProvider } from 'react-native-magnus';

import App from './src/App';

export default function Main() {
  return (
    <ThemeProvider>
      <App />
    </ThemeProvider>
  );
}

AppRegistry.registerComponent('main', () => Main);