mirror of
https://github.com/zhigang1992/examples.git
synced 2026-01-12 17:13:21 +08:00
upgrade with-facebook-auth to Expo SDK 29
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user