lib-react-mail-widget
v1.0.2
Published
React native email widget
Downloads
5
Maintainers
Readme
React Native Mail Widget
This package allows you to easily integrate a mail client widget into your React Native application.
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;