Novice, Paragon, Master

    @trycourier/react-native-inbox
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.0 • Public • Published

    @trycourier/react-native-inbox"

    a react native library for trycourier integration

    Installation

    npm install @trycourier/react-native-inbox
    yarn add @trycourier/react-native-inbox

    Usage

    wrap your parent component using CourierProvider, provide clientKey, userId , brandId as props

    if you are using react-native cli

    yarn add react-native-linear-gradient
    import LinearGradient from 'react-native-linear-gradient';

    if you are using expo-cli

    yarn add react-native-linear-gradient
    import { LinearGradient } from 'expo-linear-gradient';

    wrap your parent component with CourierProvider

    import React from 'react';
    import { CourierProvider } from '@trycourier/react-native-inbox';
    
    export default function App() {
      return (
          <CourierProvider
            clientKey={CLIENT_KEY}
            userId={USER_ID}
            brandId={BRAND_ID}
            linearGradientProvider={LinearGradient}
          >
          .....
          </CourierProvider>
      );
    }

    import and use CourierScreen anywhere in your child component

    import { CourierScreen } from '@trycourier/react-native-inbox';
    
    const Demo = () => {
      return (
        <View>
          <CourierScreen/>
        </View>
      )
    }

    you can find a proper implementation example here.

    License

    MIT

    Install

    npm i @trycourier/react-native-inbox

    DownloadsWeekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    286 kB

    Total Files

    227

    Last publish

    Collaborators

    • lednax
    • troygoode
    • scarney