1.2.2 • Published 5 years ago
@ralali/venge v1.2.2
@ralali/venge
react native tophatting for android
Installation
npm install @ralali/vengeor
yarn add @ralali/vengeUsage
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"
        />
    );
}comment: <> (## Contributing)
comment: <> (See the contributing guide(CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.)
License
MIT