0.0.20 • Published 5 years ago

harbour-react-native-runner v0.0.20

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

Harbour React Native Runner

Allows you to run facebook instant games api in a webview inside a react-native application.

Usage

Make sure to include "react-native-webview": "^6.9.0" in your package.json.

In your react-native project:

import HarbourWebView from 'harbour-react-native-runner';

const _harbourRef = React.createRef();

const App = () => {
  return (
    <HarbourWebView
      ref={_harbourRef}
      style={StyleSheet.absoluteFill}
      onPlayer={_onPlayer}
      onLeaderboardList={_onLeaderboardList}
    />
  );
};

function _onLeaderboardList() {

}
function _onPlayer() {

}

In your facebook instant game:

Script include dist/harbour-react-native-runner.min.js. It provides a window.FBInstant that is compliant with the facebook instant games api.


0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago