Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Daniel Cortes ldco2016

🏠
Working from home
  • College Station, TX
View GitHub Profile
View PhoneNumbersForm.js
import React from 'react';
import {View, Text, TouchableOpacity, SafeAreaView} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import {ScaledSheet} from 'react-native-size-matters';
import {
v2Colors,
v2Fonts,
v2InputsPropertiesBlack,
v2ButtonStyles,
} from 'theme';
@ldco2016
ldco2016 / Signup.js
Last active Sep 26, 2019
file to be worked on
View Signup.js
import React, { Component } from "react";
import { reduxForm, Field } from "redux-form";
class Signup extends Component {
// bonus
// by making method below an arrow function
// developer does not have to worry
// about binding the context of onSubmit
// saves having to call bind(this) somewhere
@ldco2016
ldco2016 / build.js
Created Sep 9, 2019
build script for generating apks and ipas
View build.js
import fs from "fs-extra";
import eachSeries from "async/eachSeries";
import { exec } from "child_process";
import { androidDirectory } from "../../app.json";
import { resolveFromRoot, distDir, createLogger } from "../build";
const logger = createLogger("android");
const APK_PATTERN = /release\.apk$/i;
@ldco2016
ldco2016 / Podfile
Created Sep 6, 2019
podfile for multi-target project
View Podfile
platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
abstract_target 'defaults' do
# Pods for NFIBEngage
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/React'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
View RootNavigation.js
/* eslint react/forbid-prop-types: "off"*/
import React, { PureComponent } from "react";
import { AppState } from "react-native";
import DrawerStack from "./DrawerStack";
import AuthStack from "./auth/stack";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { NavigationActions } from "react-navigation";
import * as cache from "utils/cache";
import { AUTH_STATUS } from "../enums/authStatus";
@ldco2016
ldco2016 / build.js
Created Sep 4, 2019
a build script
View build.js
import fs from "fs-extra";
import eachSeries from "async/eachSeries";
import { exec } from "child_process";
import { androidDirectory } from "../../app.json";
import { resolveFromRoot, distDir, createLogger } from "../build";
const logger = createLogger("android");
const APK_PATTERN = /release\.apk$/i;
View appCenter.js
#!/usr/bin/env node
const replace = require("replace-in-file");
const path = require("path");
const argv = require("yargs")
.env("APPCENTER")
.option("k", {
alias: "key"
})
.option("p", {
alias: "platform"
@ldco2016
ldco2016 / MainApplication.java
Created Aug 21, 2019
androids MainApplication.java
View MainApplication.java
package com.nfib.engage;
import android.app.Application;
import android.util.Log;
import com.facebook.react.PackageList;
import com.facebook.hermes.reactexecutor.HermesExecutorFactory;
import com.facebook.react.bridge.JavaScriptExecutorFactory;
import com.facebook.react.ReactApplication;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
View package-lock.json
{
"name": "NFIBEngage",
"version": "0.0.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@babel/code-frame": {
"version": "7.5.5",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz",
"integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==",
@ldco2016
ldco2016 / cloudSettings
Last active Oct 13, 2019
the Login component inside of src/auth/screens/Login.js
View cloudSettings
{"lastUpload":"2019-10-13T03:18:30.028Z","extensionVersion":"v3.4.3"}