Skip to content

Instantly share code, notes, and snippets.

'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
@ezha86
ezha86 / modalDateTime_contentStyle
Last active May 25, 2017 07:26
changing modal content style
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,
// swiper with the ability to delete images and close ModalImageView
import React, { Component } from 'react'
import {
Text,
View,
Image,
TouchableOpacity,
TouchableWithoutFeedback,
Dimensions
{
avatar: 'https://hsto.org/getpro/habr/post_images/e4b/067/b17/e4b067b17a3e414083f7420351db272b.jpg',
firstName: 'Alex',
lastName: 'Davidovich',
phone: '+375297736312',
allInterests: [
'Test 1',
'Развал схождение',
'BMW',
'АЗС',
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);
}
/* @flow */
import {
Image,
StatusBar,
StyleSheet,
Text,
TouchableWithoutFeedback,
View,
} from 'react-native';