This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, Fragment } from 'react'; | |
import styles from './scanStyle' | |
import { | |
TouchableOpacity, | |
Text, | |
StatusBar, | |
Image, | |
View, | |
ActivityIndicator | |
} from 'react-native'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import Scan from './scan'; | |
import config from '../config'; | |
class CameraContainer extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
camera: false, | |
cameraResult: false, | |
result: null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, Fragment } from 'react'; | |
import { RNCamera } from 'react-native-camera'; | |
import styles from './scanStyle' | |
import { | |
TouchableOpacity, | |
Text, | |
StatusBar, | |
ScrollView, | |
View, | |
ActivityIndicator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
const { isLoggedIn } = this.state | |
return ( | |
<View style={styles.container} padder> | |
{isLoggedIn ? | |
<Text style={styles.text1}>Yeahhh! You are now Logged In.</Text> | |
: <Text style={styles.text}>A common misconception is that RNFirebase provides social login out of the box. This is somewhat true, it leaves the implementation of the login provider up to the user and only signs the user in once the provider data has been returned.Firebase allows a number of social providers to be used out of the box; Facebook, Google, Twitter and Github. You can however choose any provider you wish assuming they have an oAuth API. | |
Here at enappd we have all the solution for the convenience you need?. Please do follow us at <Text onPress={this.goToEnappd} style={styles.enappd}>www.enappd.com .</Text> </Text> | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
twitterLogin = async () => { | |
try { | |
await RNTwitterSignIn.init(TwitterKeys.TWITTER_CONSUMER_KEY, TwitterKeys.TWITTER_CONSUMER_SECRET); | |
// also includes: name, userID & userName | |
const { authToken, authTokenSecret } = await RNTwitterSignIn.logIn(); | |
const credential = TwitterAuthProvider.credential(authToken, authTokenSecret); | |
const firebaseUserCredential = await firebase.auth().signInWithCredential(credential); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- /** | |
* Ionic 4 Firebase Full App (https://store.enappd.com/product/ionic-4-firebase-full-app-starter) | |
* | |
* Copyright © 2019-present Enappd. All rights reserved. | |
* | |
* This source code is licensed as per the terms found in the | |
* LICENSE.md file in the root directory of this source tree. | |
*/ --> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { Container, Content, Text, Button, Header, Left, Body, Right, Icon, Form, Item, Input, Card, ListItem, CardItem, Thumbnail, Label, Toast } from 'native-base'; | |
import { Switch } from 'react-native'; | |
import CameraGallery from '../CameraGallery/CameraGallery'; | |
import firebase from 'react-native-firebase'; | |
import SpinnerComponent from '../../src/screens/Loader/LoaderView'; | |
class ModalContainer extends Component { | |
constructor(props) { | |
super(props); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { Container, Content, Text, Button, Header, Left, Body, Right, Icon, Form, Item, Input, Card, ListItem, CardItem, Thumbnail, Label, Toast } from 'native-base'; | |
import { Switch } from 'react-native'; | |
import CameraGallery from '../CameraGallery/CameraGallery'; | |
import firebase from 'react-native-firebase'; | |
import SpinnerComponent from '../../src/screens/Loader/LoaderView'; | |
class ModalContainer extends Component { | |
constructor(props) { | |
super(props); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { Dimensions } from 'react-native'; | |
const height = Dimensions.get('screen').height | |
const width = Dimensions.get('screen').width | |
export default styles = { | |
fullwidthHeight: { | |
width: width, | |
height: height, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { Container, Text, Button, Card, } from 'native-base'; | |
import { TextInput } from 'react-native-gesture-handler'; | |
import { View, ImageBackground } from 'react-native'; | |
import styles from './Loginstyles'; | |
const LoginView = (props) => { | |
const { | |
user, |