1.1.1 • Published 8 months ago

@prosa-ai/conversa-react-native-web-view-widget v1.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
8 months ago

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

1.1.1

8 months ago

1.1.1-beta.2

8 months ago

1.1.1-beta.1

8 months ago

1.1.0

8 months ago

1.0.1-beta.1

8 months ago

1.0.0

9 months ago

1.0.0-beta.1

9 months ago

0.4.0

9 months ago

0.3.0

9 months ago

0.2.0

9 months ago

0.1.0

10 months ago