How to use the react-native-animatable.View function in react-native-animatable

To help you get started, we’ve selected a few react-native-animatable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tuantle / hypertoxin / src / components / views / item-view-component.js View on Github external
import debouncer from '../../utils/debouncer';

const {
    Component
} = React;

const {
    Animated,
    // Dimensions,
    Easing,
    StyleSheet,
    TouchableOpacity,
    View
} = ReactNative;

const AnimatedView = Animatable.View;

// const DEVICE_WIDTH = Dimensions.get(`window`).width;

const DEFAULT_ITEM_PRESS_DEBOUNCE_TIME_MS = 250;

const DEFAULT_ANIMATION_DURATION_MS = 300;

const DEFAULT_ITEM_VIEW_STYLE = {
    container: {
        flexDirection: `row`,
        alignItems: `center`,
        alignSelf: `stretch`,
        justifyContent: `space-between`,
        // width: DEVICE_WIDTH,
        width: `100%`,
        height: Ht.Theme.view.size.item,
github tuantle / hypertoxin / src / components / fields / search-field-component.js View on Github external
import React from 'react';

import ReactNative from 'react-native'; // eslint-disable-line

import PropTypes from 'prop-types';

import * as Animatable from 'react-native-animatable';

import { BlurView } from 'react-native-blur';

import dismissKeyboard from 'react-native/Libraries/Utilities/dismissKeyboard';

import debouncer from '../../utils/debouncer';

const AnimatedView = Animatable.View;
const AnimatedBlurView = Animatable.createAnimatableComponent(BlurView);

const {
    Component
} = React;

const {
    FlatList
} = ReactNative;

const {
    Dimensions,
    View,
    TextInput
} = ReactNative;
github tuantle / hypertoxin / src / components / views / layout-view-component.js View on Github external
import * as Animatable from 'react-native-animatable';

import { BlurView } from 'react-native-blur';

const {
    Component
} = React;

const {
    Dimensions,
    ScrollView,
    PanResponder,
    View
} = ReactNative;

const AnimatedView = Animatable.View;
const AnimatedBlurView = Animatable.createAnimatableComponent(BlurView);

const DEVICE_WIDTH = Dimensions.get(`window`).width;

const DEFAULT_ANIMATION_DURATION_MS = 300;

const DEFAULT_LAYOUT_VIEW_STYLE = {
    container: {
        flexShrink: 1,
        flexDirection: `column`,
        justifyContent: `center`,
        alignItems: `stretch`,
        maxWidth: DEVICE_WIDTH
        // overflow: `hidden`
    },
    horizontal: {
github rdev / now-mobile / src / components / elements / deployment-details / Details.js View on Github external
import * as Animatable from 'react-native-animatable';
import Item from './Item';
import ScaleTable from './ScaleTable';
import EventList from './EventList';
import DeploymentAlias from './DeploymentAlias';
import AddAliasButton from './AddAliasButton';

type Props = {
	scale: any,
	deployment: Zeit$Deployment,
	events: Zeit$Event[],
	aliases: Zeit$Alias[],
	reload: () => void,
};

const View = styled(Animatable.View)`
	margin-top: 10px;
`;

const Heading = styled.Text`
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 20px;
	color: ${props => props.theme.text};
`;

const MultiWrap = styled.View`
	flex-direction: row;
	justify-content: space-between;
`;

export default ({
github tuantle / hypertoxin / src / components / views / layout-view-component.ios.js View on Github external
import CreateReactClass from 'create-react-class';

import * as Animatable from 'react-native-animatable';

import { BlurView } from 'react-native-blur';

import { Ht } from '../../hypertoxin';

const {
    View,
    ScrollView,
    Dimensions
} = ReactNative;

const AnimatedView = Animatable.View;
const AnimatedBlurView = Animatable.createAnimatableComponent(BlurView);

const DEVICE_WIDTH = Dimensions.get(`window`).width;

const DEFAULT_LAYOUT_VIEW_STYLE = {
    container: {
        flexShrink: 1,
        flexDirection: `column`,
        justifyContent: `center`,
        alignItems: `stretch`,
        maxWidth: DEVICE_WIDTH,
        overflow: `hidden`
    },
    horizontal: {
        flexShrink: 1,
        flexDirection: `column`,