0.0.3 • Published 4 months ago

react-native-js-bridge v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

react-native-js-bridge

Get the webview nativeid or tag and pass to addJsBridge. It will add JS bridge on webview object create by react-native-webview

Installation

npm install react-native-js-bridge

yarn add react-native-js-bridge

Usage

import { addJsBridge } from 'react-native-js-bridge';

// ...

const checkandAddJsBridge = (tag: number) => {
    const nativeTag = findNodeHandle(tag);
    if (nativeTag) addJsBridge(nativeTag);
};

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

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago