@ralali/venge
v1.2.2
Published
react native tophatting for android
Downloads
3
Readme
@ralali/venge
react native tophatting for android
Installation
npm install @ralali/venge
or
yarn add @ralali/venge
Usage
in MainApplication.java
// ...
private final ReactNativeHost mReactNativeHost =
new ReactNativeHost(this) {
@Override
protected String getJSBundleFile() {
return VengePackage.getJSBundleFile(MainApplication.this);
}
}
//...
in JS or TS file
import React from 'react';
import { Venge } from "@ralali/venge";
// ...
function tophatting(props) {
const[modalVisible, setModalVisible] = React.useState(false);
//...
return (
//...
<Venge
visible={modalVisible}
onRequestClose={() => setModalVisible(false)}
url="https://dl.dropboxusercontent.com/s"
/>
);
}
License
MIT