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 from 'react' | |
| import { TouchableOpacity, StyleSheet, View, Text } from 'react-native' | |
| import Ionicons from 'react-native-vector-icons/Ionicons' | |
| const Header = ({ | |
| navigation, | |
| colorLeft, | |
| leftButton, | |
| leftIcon, | |
| 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 from 'react' | |
| import { TouchableOpacity, StyleSheet, View, Text } from 'react-native' | |
| import Ionicons from 'react-native-vector-icons/Ionicons' | |
| const Header = ({ | |
| navigation, | |
| colorLeft, | |
| leftButton, | |
| leftIcon, | |
| 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 { graphql, compose } from 'react-apollo' | |
| import MaterialIcons from 'react-native-vector-icons/MaterialIcons' | |
| import { Fumi } from 'react-native-textinput-effects' | |
| import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome' | |
| import Ionicons from 'react-native-vector-icons/Ionicons' | |
| import { View, TouchableOpacity, ScrollView, AsyncStorage, Keyboard } from 'react-native' | |
| import { connect } from 'react-redux' | |
| import { InputUI, ButtonUI, Card, Loading } from '../common' | |
| import * as actions from '../actions' |
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 { ScrollView, View, Text } from 'react-native' | |
| class App extends Component { | |
| state = { | |
| scrollY: window.scrollY | |
| } | |
| componentDidMount() { | |
| window.addEventListener('scroll', this.handleScroll) |
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 './class.css' | |
| class Classes extends Component { | |
| constructor () { | |
| super() | |
| this.state = { | |
| show: true | |
| } | |
| } |
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
| NODE_ENV=production webpack --config webpack.production.config.js --progress --profile --colors [INSERT] | |
| The CLI moved into a separate package: webpack-cli | |
| Would you like to install webpack-cli? (That will run yarn add -D webpack-cli) (yes/NO)yes | |
| yarn add v1.5.1 | |
| [1/4] 🔍 Resolving packages... | |
| warning webpack-cli > jscodeshift > [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! | |
| warning webpack-cli > webpack-addons > jscodeshift > [email protected]: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! | |
| warning webpack-cli > jscodeshift > [email protected]: Package no longer supported. Contact [email protected] for more info. | |
| warning webpack-cli > webpack-addons > jscodeshift > [email protected]: Package no longer supported. Contact [email protected] for more info. | |
| [2/4] 🚚 Fetching packages... |
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 path = require('path') | |
| const HtmlWebpackPlugin = require('html-webpack-plugin') | |
| const ENV = process.env | |
| const isProduction = ENV.NODE_ENV === 'production' | |
| const client = { | |
| entry: './index.js', | |
| output: { | |
| path:__dirname +'/build', | |
| filename: 'index_bundle.js' |
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 { Text, View, ScrollView, StyleSheet } from 'react-native' | |
| import * as Animatable from 'react-native-animatable' | |
| import Accordion from 'react-native-collapsible/Accordion' | |
| const CONTENT = [ | |
| { | |
| title: 'Maintenance: booking request sent', | |
| date: '13.04.2018, 04:00 - 08:00', | |
| descr: 'DriveTech 10', |
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, TouchableHighlight } from 'react-native' | |
| import PropTypes from 'prop-types' | |
| import Collapsible from './Collapsible' | |
| import { ViewPropTypes } from './config' | |
| const COLLAPSIBLE_PROPS = Object.keys(Collapsible.propTypes) | |
| const VIEW_PROPS = Object.keys(ViewPropTypes) | |
| export default class Accordion extends Component { |
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, { PureComponent } from 'react' | |
| import PropTypes from 'prop-types' | |
| import { Animated, Easing } from 'react-native' | |
| import { ViewPropTypes } from './config' | |
| const ANIMATED_EASING_PREFIXES = ['easeInOut', 'easeOut', 'easeIn'] | |
| export default class Collapsible extends PureComponent { | |
| static propTypes = { | |
| align: PropTypes.oneOf(['top', 'center', 'bottom']), |