[iOS] Don't show google signin button on iOS <= 10
It doesn't seem to work properly.
This commit is contained in:
parent
843f08f38e
commit
5ff1ce5a60
|
@ -1,7 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Text, View } from 'react-native';
|
import { Platform, Text, View } from 'react-native';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import { translate } from '../../../base/i18n';
|
import { translate } from '../../../base/i18n';
|
||||||
|
@ -74,6 +74,18 @@ class GoogleSigninForm extends Component<Props> {
|
||||||
* @inheritdoc
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
if (Platform.OS === 'ios') {
|
||||||
|
const majorVersionIOS = parseInt(Platform.Version, 10);
|
||||||
|
|
||||||
|
if (majorVersionIOS <= 10) {
|
||||||
|
// Disable it on iOS 10 and earlier, since it doesn't work
|
||||||
|
// properly.
|
||||||
|
this._setApiState(GOOGLE_API_STATES.NOT_AVAILABLE);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
googleApi.hasPlayServices()
|
googleApi.hasPlayServices()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
googleApi.configure({
|
googleApi.configure({
|
||||||
|
|
Loading…
Reference in New Issue