Skip to content

Instantly share code, notes, and snippets.

React Native Workshop

by Harry Tormey

Instructor: Harry Tormey

Thank you for attending the workshop on React Native! Please read through this entire document and follow the steps to get set up. Please complete each step before the workshop starts to ensure that you are ready to go from the start!

Contents

1. Schedule
2. Set up the Dev Environment: 10 mins

package org.celo.miner;
import org.celo.miner.SMSLog;
import org.celo.miner.SMSAck;
import org.celo.miner.SMSResponse;
import org.celo.miner.SMSMinerServiceManager;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;

React Native Workshop

by Harry Tormey

Instructor: Harry Tormey

Thank you for attending the workshop on React Native! Please read through this entire document and follow the steps to get set up. Please complete each step before the workshop starts to ensure that you are ready to go from the start!

Contents

1. Schedule
2. Set up the Dev Environment: 10 mins

@hgale
hgale / App.js
Created June 7, 2018 19:18
Issue with nested virtualized react native lists
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
_defaultRenderScrollComponent = props => {
// if (this._isNestedWithSameOrientation()) {
// return <View {...props} />;
// } else
if (props.onRefresh) {
invariant(
typeof props.refreshing === 'boolean',
'`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `' +
JSON.stringify(props.refreshing) +
'`',
@hgale
hgale / App.js
Last active October 26, 2021 09:21
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
@hgale
hgale / App.js
Created May 25, 2018 20:47
Gist illustrating a problem with nested horizontal Flatlists
**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
@hgale
hgale / App.js
Created May 25, 2018 20:47
Gist illustrating a problem with nested horizontal Flatlists
**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.d(TAG,"Not there yes");
try {
String firebaseDeviceToken = FirebaseInstanceId.getInstance().getToken();
Log.d(TAG,firebaseDeviceToken);
} catch (Exception e) {
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.miner">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"