This file contains 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
// App/utilities/AndroidFontFix.js | |
import React from 'react'; | |
import { Platform, StyleSheet, Text } from 'react-native'; | |
import { getManufacturerSync } from 'react-native-device-info'; | |
// https://github.com/castle-xyz/castle-client/pull/11/files | |
// This fixes this bug: https://github.com/facebook/react-native/issues/15114 | |
// As of 6/2/2020, this bug is marked as closed and Facebook has signalled that |
This file contains 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
const fs = require('fs'); | |
const fetch = require('node-fetch'); | |
const data = require('./data'); | |
const target = 'name="description" content="'; | |
const target2 = 'rel="canonical" href="'; | |
const fetchData = (post) => { | |
return fetch(post.url) | |
.then(res => res.text()) |
This file contains 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
const customAnimatedSequence = (animations, onStepStart) => { | |
let current = 0; | |
return { | |
start: (callback) => { | |
const onComplete = (result) => { | |
if (!result.finished) { | |
callback && callback(result); | |
return; | |
} |
This file contains 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
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.bamms" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | |
<uses-sdk | |
android:minSdkVersion="16" |
This file contains 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
{"contents":{"editor":{"formatOnSave":true}},"overrides":[],"keys":["editor.formatOnSave"]} |
This file contains 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 Meteor from 'react-native-meteor'; | |
import { AsyncStorage } from 'react-native'; | |
import { createStore, applyMiddleware } from 'redux'; | |
import createLogger from 'redux-logger'; | |
import { persistStore, autoRehydrate } from 'redux-persist'; | |
import _ from 'lodash'; | |
import reducer from './reducer'; | |
// Actions |
This file contains 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
// RNApp/app/containers/signOut.js | |
handleSignOut() { | |
GoogleSignin.signOut() | |
.then(() => { | |
ddpClient.logout(() => { | |
this.props.changedSignedIn(false); | |
}); | |
}) | |
.catch((err) => { |
This file contains 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
// RNApp/app/containers/signIn.js | |
handleDDPSignIn(googleUser) { | |
if (googleUser) { | |
ddpClient.loginWithGoogle(googleUser, (err, res) => { | |
if (err) { | |
this.setState({error: err.reason}); | |
} else { | |
this.props.changedSignedIn(true); | |
} |
This file contains 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
// RNApp/app/ddp.js | |
ddpClient.loginWithGoogle = (user, cb) => { | |
let params = { google: user }; | |
return ddpClient.call("login", [params], (err, res) => { | |
ddpClient.onAuthResponse(err, res); | |
cb && cb(err, res) | |
}) | |
} |
NewerOlder