1.0.2 • Published 6 years ago

react-native-game-center-authentication v1.0.2

Weekly downloads
12
License
-
Repository
-
Last release
6 years ago

react-native-game-center-authentication

Getting started

npm install react-native-game-center-authentication --save

or

yarn add react-native-game-center-authentication

Automatic installation

react-native link react-native-game-center-authentication

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-game-center-authenticationentication and add RNReactNativeGameCenterAuthentication.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNReactNativeGameCenterAuthentication.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Usage

import GCAuth from 'react-native-game-center-authenticationentication';

const gamecenter = new GCAuth();

gamecenter.authenticate()
.then((user) => {
	console.log(user);
})

The module isn't build using typescript but comes with types included in index.d.ts.

ToDo

  • Change the namespacing from RNReactNative... to RN... only