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
'use strict'; | |
import React from 'react'; | |
import {Platform, View} from 'react-native'; | |
import { TabNavigator } from 'react-navigation'; | |
import {DEFAULT_COLOR} from '../../../styles'; | |
import {Icon} from '../../../components/index'; | |
// Tab-Navigators |
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 PropTypes from 'prop-types'; | |
import { DatePickerIOS, Text, TouchableOpacity, View } from 'react-native'; | |
import ReactNativeModal from 'react-native-modal'; | |
import styles from './index.style'; | |
export default class CustomDatePickerIOS extends Component { | |
static propTypes = { | |
cancelTextIOS: PropTypes.string, |
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
// swiper with the ability to delete images and close ModalImageView | |
import React, { Component } from 'react' | |
import { | |
Text, | |
View, | |
Image, | |
TouchableOpacity, | |
TouchableWithoutFeedback, | |
Dimensions |
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
{ | |
avatar: 'https://hsto.org/getpro/habr/post_images/e4b/067/b17/e4b067b17a3e414083f7420351db272b.jpg', | |
firstName: 'Alex', | |
lastName: 'Davidovich', | |
phone: '+375297736312', | |
allInterests: [ | |
'Test 1', | |
'Развал схождение', | |
'BMW', | |
'АЗС', |
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
shouldComponentUpdate(nextProps: View.props, nextState: State): boolean { | |
return nextProps !== this.props || | |
//(nextState.fullscreen || this.state.fullscreen) && | |
(!_.eq(nextState.origin, this.state.origin) | |
|| !_.eq(nextState.target, this.state.target) | |
|| nextState.panning !== this.state.panning | |
|| nextState.animating !== this.state.animating | |
|| nextState.selectedImageHidden !== this.state.selectedImageHidden | |
|| nextState.selectedIdx !== this.state.selectedIdx); | |
} |
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
/* @flow */ | |
import { | |
Image, | |
StatusBar, | |
StyleSheet, | |
Text, | |
TouchableWithoutFeedback, | |
View, | |
} from 'react-native'; |