0.0.20 • Published 6 years ago

harbour-react-native-runner v0.0.20

Weekly downloads
5
License
MIT
Repository
github
Last release
6 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

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago