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 {StyleSheet} from 'react-native' | |
const styles = StyleSheet.create({ | |
rowContainer: { | |
flexDirection: this.props.reverseRow ? 'row-reverse' : 'row, | |
} | |
}) |
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 Child from './Child' | |
let newEvent = { | |
location: { latitude: 42.816006, longitude: -73.911287}, | |
color: 'wheat' | |
} | |
export default class Parent extends React.Component { | |
render() { | |
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
D:\workspace\BWP (master) | |
λ git status | |
On branch master | |
Your branch and 'origin/master' have diverged, | |
and have 2 and 1 different commits each, respectively. | |
(use "git pull" to merge the remote branch into yours) | |
You are currently rebasing branch 'master' on '0b71b84'. | |
(all conflicts fixed: run "git rebase --continue") |
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
export default class Schedule extends Component { | |
constructor(props) { | |
super(props) | |
const position = new Animated.ValueXY() | |
const panResponder = PanResponder.create({ | |
//Ask to be the responder: | |
onStartShouldSetPanResponder: () => 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
export default { | |
background: '#ffffff', | |
primaryText: '#525252', | |
subtleText: '#9a9a9a', | |
rowUnderlay: 'rgba(154, 154, 154, 0.25)', | |
borderColor: '#cccccc', | |
grayBackground: '#f9fafb', | |
link: '#007aff', | |
yellow(a): `rgba(255,196,35,${a})` | |
} |
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 { TabNavigator } from 'react-navigation' | |
export const Tabs = TabNavigator( | |
{ | |
Home: { | |
screen: Container, | |
navigationOptions: { | |
tabBarLabel: 'Home', | |
tabBarIcon: ({ tintColor }) => | |
<Icon name="ios-home" size={28} color={tintColor} /> |
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
export default class DrawerContainer extends Component { | |
render() { | |
drawerCheck = () => { | |
this.drawer | |
? this.drawer.openDrawer() | |
: alert('this.drawer is Undefined!') | |
} | |
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
class LoggedInWrap extends Component { | |
state = { | |
route: { | |
routeName: "Home", | |
}, | |
}; | |
openDrawer = () => { | |
this.drawer.openDrawer(); | |
}; |
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 DrawerLayout from 'react-native-drawer-layout' | |
import NavigationView from './NavigationView.js' | |
export default class DrawerContainer extends React.Component { | |
render() { | |
return ( | |
<DrawerLayout | |
drawerWidth={300} | |
drawerPosition={DrawerLayout.positions.Left} | |
renderNavigationView={() => NavigationView} |
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 React, { Component } from 'react' | |
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native' | |
import DrawerLayout from 'react-native-drawer-layout' | |
export default class Drawer extends Component { | |
constructor(props) { | |
super(props) | |
this.state = {} |