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 { | |
TouchableOpacity, | |
Text, | |
View, | |
Image, | |
Animated, | |
PanResponder, | |
StyleSheet, | |
ScrollView, |
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 {compose, withState, withProps} from 'recompose'; | |
const withMeasurements = compose( | |
withState('elementX', 'setX', 0), | |
withState('elementY', 'setY', 0), | |
withState('elementWidth', 'setWidth', 0), | |
withState('elementHeight', 'setHeight', 0) | |
); | |
const withOnLayout = withProps(({setX, setY, setWidth, setHeight}) => ({ |
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 { StyleSheet, Text, View, ScrollView, Animated } from 'react-native'; | |
import {compose, withState, withProps} from 'recompose'; | |
import AnimatedHeader from './AnimatedHeader'; | |
import ItemInScroll from './ItemInScroll'; | |
export const scrollRangeForAnimation = 100; | |
const HeaderPlaceholder = <View style={{flex: 0, height: 200, width: '100%'}} />; |
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 { conenct } from 'react-redux'; | |
import { compose, lifecycle, branch, renderComponent, withProps, withState } from 'recompose'; | |
import { loadCampers } from 'redux/campers/actions'; | |
const enhance = compose( | |
connect( | |
state => ({ | |
campers: state.campers.lists |
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 { conenct } from 'react-redux'; | |
import { compose, lifecycle, branch, renderComponent, withProps } from 'recompose'; | |
import { loadCampers } from 'redux/campers/actions'; | |
const enhance = compose( | |
connect( | |
state => ({ | |
campers: state.campers.lists |
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 { conenct } from 'react-redux'; | |
import { compose, lifecycle, branch, renderComponent } from 'recompose'; | |
import { loadCampers } from 'redux/campers/actions'; | |
const enhance = compose( | |
connect( | |
state => ({ | |
campers: state.campers.lists, |
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 { conenct } from 'react-redux'; | |
import { compose } from 'recompose'; | |
const enhance = compose( | |
connect( | |
state => ({ | |
campers: state.campers.lists | |
}) | |
) |
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 { StyleSheet, FlatList, Dimensions, View } from 'react-native'; | |
import styled from 'styled-components/native'; | |
const SCREEN_WIDTH = Dimensions.get('window').width; | |
const width = SCREEN_WIDTH; | |
const InactiveDot = styled.View` | |
background-color: ${props => props.theme.slider.inactive.backgroundColor}; | |
width: 8; |
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 { View, Animated, Dimensions, Platform } from 'react-native'; | |
import Interactable from 'react-native-interactable'; | |
import { compose, mapProps } from 'recompose'; | |
const { width } = Dimensions.get('window'); | |
/* eslint-disable */ | |
/* | |
* Origin state |