@prosa-ai/conversa-react-native-web-view-widget v1.1.1
Conversa React Native Web View Widget
Description
Conversa React Native Web View Widget is a React Native component that allows you to integrate web views widget into your React Native application with ease.
Features
- Seamlessly integrate web views into your React Native application.
- Customize the behavior and appearance of the web views.
- Pass props and data to the web view as needed.
Installation
npm install @prosa-ai/conversa-react-native-web-view-widget
Usage
import * as React from 'react';
import ConversaWebViewWidget from '@prosa-ai/conversa-react-native-web-view-widget';
export default function App() {
const handleClose = React.useCallback(() => {
console.log('handle close');
}, []);
const handleFinishScenario = React.useCallback((value) => {
if (value) {
console.log('scenario is finished');
}
}, []);
return (
<>
<ConversaWebViewWidget
uri="https://example.com"
handleClose={handleClose}
handleFinishScenario={handleFinishScenario}
/>
</>
);
}
Props
uri
(string, required): The URL of the web page you want to display in the web view.
handleClose
(function, required): A callback function to be called when the web view is closed.
handleFinishScenario
(function, required): A callback function to be called when the scenario is finished.
statusBarProps
(object, optional): Props to be passed to the React Native StatusBar component.
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
10 months ago