1.0.2 • Published 8 years ago
react-native-game-center-authentication v1.0.2
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
- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-game-center-authenticationenticationand addRNReactNativeGameCenterAuthentication.xcodeproj - In XCode, in the project navigator, select your project. Add
libRNReactNativeGameCenterAuthentication.ato your project'sBuild Phases➜Link Binary With Libraries - 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...toRN...only