1.0.2 • Published 10 months ago

lib-react-mail-widget v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

React Native Mail Widget

This package allows you to easily integrate a mail client widget into your React Native application. Screenshot

Installation

To install the mail widget, use npm:

npm install lib-react-mail-widget

Usage

Import the Component

First, import the OBEmailClient in your component file:

import OBEmailClient from 'lib-react-mail-widget';

Implement in Your JSX

Use the OBEmailClient component in your JSX, passing in the required token prop:

return (
    <View style={{ flex: 1 }}>
        <OBEmailClient token={token} />
    </View>
);

Example Application

Here's a simple example of how to set up a React Native application that uses the lib-react-mail-widget.

// MailApp.jsx
import React from 'react';
import { View, StyleSheet } from 'react-native';
import OBEmailClient from 'lib-react-mail-widget';

const MailApp = () => {
    const token = 'YOUR_PING_TOKEN_HERE'; // Replace with your actual token

    return (
        <View style={styles.container}>
            <OBEmailClient token={token} />
        </View>
    );
};

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#fff',
    },
});

export default MailApp;
1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago