Skip to content

Instantly share code, notes, and snippets.

View roshangm1's full-sized avatar
🎯
Focusing

Roshan Gautam roshangm1

🎯
Focusing
View GitHub Profile
@roshangm1
roshangm1 / loginbug
Created February 1, 2018 05:23
Login Bug
loginWithFb = () => {
manager.deauthorize('facebook')
manager.authorize('facebook', {scopes: 'email'})
.then((resp) => {
console.log(resp);
const accessToken = (Platform.OS === 'ios') ? resp.response.credentials.accessToken : resp.credentials.accessToken
this.sendFbTokenToServer(accessToken, 'facebook')
});
import React from 'react';
import {
Dimensions,
StyleSheet,
Text,
View,
} from 'react-native';
const { width } = Dimensions.get('window');
@roshangm1
roshangm1 / toolbar.js
Last active April 14, 2019 01:27
Toolbar
import React from "react";
import { View, StyleSheet } from "react-native";
import ButtonIcon from "./ButtonIcon";
import { CustomFontText } from "../CustomFontText";
import Row from "./Row";
import { PropTypes } from "prop-types";
import CircularImage from "./CircularImage";
import { TouchableOpacity } from "react-native-gesture-handler";
import { Colors } from "../../styles/colors";