This file contains hidden or 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
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool | |
// Warm up ReactNative bridge and fetch latest screens | |
RNEventController.applicationDidLaunch() | |
This file contains hidden or 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
{ | |
"name": "react-native-class-chicago", | |
"version": "0.1.0", | |
"private": true, | |
"devDependencies": { | |
"babel-plugin-add-module-exports": "^0.2.1", | |
"babel-preset-es2015": "^6.24.1", | |
"babel-preset-stage-2": "^6.24.1", | |
"jest-expo": "^0.4.0", | |
"react-native-scripts": "0.0.29", |
This file contains hidden or 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 React, { Component } from 'react' | |
import { | |
View, | |
Text, | |
ListView, | |
TouchableHighlight, | |
TextInput, | |
} from 'react-native' | |
import Exercise from '../exercise' |
This file contains hidden or 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
/** | |
* Display an exercise and its associated UI inside of a modal. | |
*/ | |
import React, {PropTypes} from 'react' | |
import { View, Text, Modal, TouchableOpacity, Image } from 'react-native' | |
import GestureRecognizer from 'react-native-swipe-gestures' | |
import CloseImage from '../../assets/x.png' | |
import style from './style' |
This file contains hidden or 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
/** | |
* Display an exercise and its associated UI inside of a modal. | |
*/ | |
import React, {PropTypes} from 'react' | |
import { View, Text, Modal, TouchableOpacity, Image } from 'react-native' | |
import CloseImage from '../../assets/x.png' | |
import style from './style' |
This file contains hidden or 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 React, { Component } from 'react' | |
import { | |
View, | |
Text, | |
ListView, | |
TouchableHighlight, | |
} from 'react-native' | |
import Exercise from '../exercise' | |
import Exercises from './exercises' |
This file contains hidden or 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 { StyleSheet } from 'react-native' | |
export default StyleSheet.create({ | |
container: { | |
alignItems: 'stretch', | |
padding: 15, | |
flex: 1, | |
backgroundColor: '#fff' | |
}, | |
title: { |
This file contains hidden or 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 React, { Component } from 'react' | |
import { | |
View, | |
Text, | |
ListView, | |
} from 'react-native' | |
import Exercises from './exercises' | |
import style from './style' |
This file contains hidden or 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 { StyleSheet } from 'react-native' | |
export default StyleSheet.create({ | |
container: { | |
alignItems: 'stretch', | |
padding: 15, | |
flex: 1, | |
backgroundColor: '#fff' | |
}, |
This file contains hidden or 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 Exercises = [ | |
{ | |
'title': 'Push ups', | |
}, | |
{ | |
'title': 'Bench Press', | |
}, | |
{ | |
'title': 'Barbell Back Squat', | |
}, |