react-native-meon-ipo
v1.0.0
Published
React Native SDK for Meon IPO WebView integration
Maintainers
Readme
React Native Meon IPO SDK
A React Native SDK for integrating Meon IPO WebView functionality into your mobile applications.
Installation
npm install react-native-meon-ipoAdditional Dependencies
This package requires react-native-webview. Install it if you haven't already:
npm install react-native-webviewFor iOS, run:
cd ios && pod installUsage
Basic Example
import React from 'react';
import { SafeAreaView, StyleSheet } from 'react-native';
import { MeonIPO } from 'react-native-meon-ipo';
const App = () => {
return (
<SafeAreaView style={styles.container}>
<MeonIPO companyName="ndaindia" />
</SafeAreaView>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
export default App;Custom Base URL
import { MeonIPO } from 'react-native-meon-ipo';
<MeonIPO
companyName="ndaindia"
baseUrl="https://ipo.meon.co.in"
/>With Callbacks
import { MeonIPO } from 'react-native-meon-ipo';
<MeonIPO
companyName="ndaindia"
onLoadStart={() => console.log('Loading started')}
onLoadEnd={() => console.log('Loading finished')}
onError={(error) => console.error('Error:', error)}
style={{ flex: 1 }}
/>Props
| Prop | Type | Required | Default | Description |
|------|------|----------|---------|-------------|
| companyName | string | Yes | - | Company name to load IPO information for (e.g., "ndaindia") |
| baseUrl | string | No | "https://ipo.meon.co.in" | Base URL for the Meon IPO service |
| style | ViewStyle | No | - | Custom styles for the WebView container |
| onLoadStart | () => void | No | - | Callback when WebView starts loading |
| onLoadEnd | () => void | No | - | Callback when WebView finishes loading |
| onError | (error: any) => void | No | - | Callback when WebView encounters an error |
Features
- 🚀 Easy integration with React Native apps
- 🎨 Customizable base URL and styling
- 📱 Built-in loading indicator
- 🔧 TypeScript support
- ⚡ Optimized WebView performance
Requirements
- React Native >= 0.60.0
- react-native-webview >= 11.0.0
License
MIT
Author
Meon IPO
Support
For issues, questions, or feature requests: Email: [email protected]
