upgrade with-facebook-auth to Expo SDK 29

This commit is contained in:
Caleb Nance
2018-07-28 10:58:58 -04:00
parent b167d9034b
commit 88eb140dbc
4 changed files with 1521 additions and 1040 deletions

View File

@@ -1,10 +1,10 @@
import React from 'react';
import React, { Component } from 'react';
import { Image, Button, StyleSheet, Text, View } from 'react-native';
import { AuthSession } from 'expo';
const FB_APP_ID = '672636582940821';
export default class App extends React.Component {
export default class App extends Component {
state = {
userInfo: null,
};
@@ -38,7 +38,9 @@ export default class App extends React.Component {
let redirectUrl = AuthSession.getRedirectUrl();
// You need to add this url to your authorized redirect urls on your Facebook app
console.log({ redirectUrl });
console.log({
redirectUrl
});
// NOTICE: Please do not actually request the token on the client (see:
// response_type=token in the authUrl), it is not secure. Request a code

View File

@@ -3,7 +3,7 @@
"name": "with-facebook-auth",
"description": "Using Facebook authentication in Expo, see the source: https://github.com/expo/examples/blob/master/with-facebook-auth",
"slug": "with-facebook-auth",
"sdkVersion": "21.0.0",
"sdkVersion": "29.0.0",
"version": "1.0.0",
"orientation": "portrait",
"primaryColor": "#cccccc",

View File

@@ -1,13 +1,13 @@
{
"name": "with-facebook-auth",
"version": "0.0.0",
"description": "",
"description": "Hello Expo!",
"author": "support@expo.io",
"private": true,
"main": "node_modules/expo/AppEntry.js",
"dependencies": {
"expo": "^21.0.0",
"react": "16.0.0-alpha.12",
"react-native": "https://github.com/expo/react-native/archive/sdk-21.0.2.tar.gz"
"expo": "^29.0.0",
"react": "16.3.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz"
}
}

File diff suppressed because it is too large Load Diff