0.0.3 • Published 4 months ago
react-native-js-bridge v0.0.3
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