Skip to content

Instantly share code, notes, and snippets.

View mdshadman's full-sized avatar
🎗️
Focusing

Md Shadman Alam mdshadman

🎗️
Focusing
View GitHub Profile
import React, { Component, Fragment } from 'react';
import styles from './scanStyle'
import {
TouchableOpacity,
Text,
StatusBar,
Image,
View,
ActivityIndicator
} from 'react-native';
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,
import React, { Component, Fragment } from 'react';
import { RNCamera } from 'react-native-camera';
import styles from './scanStyle'
import {
TouchableOpacity,
Text,
StatusBar,
ScrollView,
View,
ActivityIndicator
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>
}
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);
<!-- /**
* 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.
*/ -->
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);
@mdshadman
mdshadman / modal.js
Created August 5, 2019 07:37
Here i am adding and updating image and data in the collection using the same modal but with different functions
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);
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,
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,