Skip to content

Instantly share code, notes, and snippets.

View binzailani3136's full-sized avatar

Bin Zailani binzailani3136

  • Kuala Lumpur Malaysia
View GitHub Profile
{
"APP_NAME": "AN10NA",
"WELCOME": "WELCOME",
"UPLOAD_PHOTO": "UPLOAD YOUR PHOTO",
"USERNAME": "USERNAME",
"EMAIL": "EMAIL",
"PASSWORD": "PASSWORD",
"CREATE_PASSWORD": "CREATE PASSWORD",
"CONFIRM_PASSWORD": "CONFIRM PASSWORD",
"FORGOT_PASSWORD": "FORGOT PASSWORD?",
@binzailani3136
binzailani3136 / gist:c51cb4d16f8558df1642305d5f7db210
Created April 27, 2017 00:02 — forked from marty-wang/gist:5a71e9d0a6a2c6d6263c
Compile and deploy React Native Android app of Release version to device.
Disclaimer: The instructions are the collective efforts from a few places online.
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.
First off, bundle.
==================
1. cd to the project directory
2. Start the react-native packager if not started
3. Download the bundle to the asset folder:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
Tycoon
Post 100 projects.
The Chosen One
Earned on Apr 3rd, 2016 Accept 100 projects.
The Empire Builder
Award 100 projects.
The Centurion
const algoliasearch = require('algoliasearch/reactnative')('9BI25RD63R', '4edbe1e1d37bca98c5efdfae09ebba5f');
const properties = algoliasearch.initIndex('properties');
const schools = algoliasearch.initIndex('schools');
const cities = algoliasearch.initIndex('cities');
const communities = algoliasearch.initIndex('communities');
export function searchAlgolia(searchParams, justReloaded, desktop_view, callBack) {
// changeTitle();
notSearched = !1;
// $rootScope.search_space.selectedProperty = void 0;
const algoliasearch = require('algoliasearch/reactnative')('9BI25RD63R', '4edbe1e1d37bca98c5efdfae09ebba5f');
const properties = algoliasearch.initIndex('properties');
const schools = algoliasearch.initIndex('schools');
const cities = algoliasearch.initIndex('cities');
const communities = algoliasearch.initIndex('communities');
export function searchAlgolia(searchParams, justReloaded, desktop_view, callBack) {
// changeTitle();
notSearched = !1;
// $rootScope.search_space.selectedProperty = void 0;
import React, { Component } from 'react';
import { Text, TouchableOpacity } from 'react-native';
import { View } from 'react-native-animatable';
import Icon from 'react-native-vector-icons/Ionicons';
import { Styles, Fonts, Colors } from '@theme/';
export default class CircleButton extends Component {
render() {
const textStyle = this.props.titleStyle != null ? this.props.titleStyle :
https://reactdevteam.000webhostapp.com/user/?userId=123
'use strict';
import React, { Component } from 'react';
import { BackAndroid, Platform, StatusBar } from 'react-native';
import { connect } from 'react-redux';
import _ from 'lodash/core';
import { Drawer } from 'native-base';
import { closeDrawer } from './actions/drawer';
import { popRoute } from './actions/route';
import { statusBarColor } from './themes/base-theme';
export const changeFilterKind = // eslint-disable-line import/prefer-default-export
'CHANGE_FILTER_KIND';
export const createActivity = // eslint-disable-line import/prefer-default-export
'CREATE_ACTIVITY';
// Ajax request
export const FETCHING_DATA = 'FETCHING_DATA';
// Login
export const UPDATE_EMAIL = 'UPDATE_EMAIL';
import * as firebase from 'firebase';
const firebaseConfig = {
apiKey: "AIzaSyAfHOFdjPwByt_S7RSPcyF5OPzwp_????",
authDomain: "??????-44ce2.firebaseapp.com",
databaseURL: "https://??????-44ce2.firebaseio.com",
storageBucket: "",
};
const app = firebase.initializeApp(firebaseConfig);