fix for devices without Firebase support
This commit is contained in:
parent
2bf67d31e8
commit
e6ee26f94c
2 changed files with 6 additions and 6 deletions
|
@ -55,7 +55,7 @@ export default class ModalTagSelector extends React.PureComponent {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TouchableOpacity style={modalTagSelectorStyle.overlay} activeOpacity={1} onPress={onOverlayPress}>
|
<TouchableOpacity style={modalTagSelectorStyle.overlay} activeOpacity={1} onPress={onOverlayPress}>
|
||||||
<View style={modalTagSelectorStyle.container}>
|
<TouchableOpacity style={modalTagSelectorStyle.container} activeOpacity={1}>
|
||||||
<View style={modalTagSelectorStyle.titleRow}>
|
<View style={modalTagSelectorStyle.titleRow}>
|
||||||
<Text style={modalTagSelectorStyle.title}>Customize your tags</Text>
|
<Text style={modalTagSelectorStyle.title}>Customize your tags</Text>
|
||||||
</View>
|
</View>
|
||||||
|
@ -75,7 +75,7 @@ export default class ModalTagSelector extends React.PureComponent {
|
||||||
<View style={modalTagSelectorStyle.buttons}>
|
<View style={modalTagSelectorStyle.buttons}>
|
||||||
<Button style={modalTagSelectorStyle.doneButton} text={'Done'} onPress={onDonePress} />
|
<Button style={modalTagSelectorStyle.doneButton} text={'Done'} onPress={onDonePress} />
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</TouchableOpacity>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,10 +144,10 @@ class SplashScreen extends React.PureComponent {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
NativeModules.VersionInfo.getAppVersion().then(appVersion => {
|
NativeModules.VersionInfo.getAppVersion().then(appVersion => {
|
||||||
NativeModules.Firebase.getMessagingToken().then(firebaseToken => {
|
this.setState({ shouldAuthenticate: true });
|
||||||
this.setState({ shouldAuthenticate: true });
|
NativeModules.Firebase.getMessagingToken()
|
||||||
authenticate(appVersion, Platform.OS, firebaseToken);
|
.then(firebaseToken => authenticate(appVersion, Platform.OS, firebaseToken))
|
||||||
});
|
.catch(() => authenticate(appVersion, Platform.OS));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue