GithubHelp home page GithubHelp logo

react-native-training / react-native-animations Goto Github PK

View Code? Open in Web Editor NEW
114.0 5.0 36.0 101 KB

React Native Animations

Python 17.49% Java 13.19% JavaScript 22.48% Objective-C 46.84%
reactnative react-native javascript react reactjs

react-native-animations's Introduction

react-native-animations's People

Contributors

dabit3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-animations's Issues

I keep getting this error 'Attempted to assign readonly property'

I followed the example apps in this repo, but i get this error. Can you Yelp me out please

import { StyleSheet, Text, AppRegistry, ImageBackground, Image, Animated, Easing, View } from 'react-native';
//import { Overlay} from "@shoutem/ui";
import { Item, Form, Input, Button, Icon} from 'native-base';
import style from './styles.js';
export default class App extends React.Component {

  constructor () {
    super();
      this.blur = new Animated.Value(0),
      this.slide = new Animated.Value(-100)
  }

  // React Lifecycle method, start an Animation
  componentDidMount () {
    Animated.sequence([
      Animated.timing(this.blur, {
        toValue: 2,
        duration: 1500
      }),
      Animated.timing(this.slide, {
        toValue: 0,
        easing: Easing.in(Easing.ease),
        duration: 2000
      })
    ]).start();
  }

  render() {
    //let { blur, slide } = this.state;
    return (
      <Animated.View>
      <ImageBackground blurRadius={this.blur} source={require('./src/img/bad.jpg')} style={style.backGroundImage}>
        <Image source={require('./src/img/Cubix.png')}/>
        <Animated.View style={{transform :[{translateY : this.slide}]}}>

        <Item style={style.input} rounded>
          <Icon style={{ color: 'white' }} active name='person'/>
          <Input style={{ color: 'white' }} placeholderTextColor="white" placeholder='Email' />
        </Item>

        <Item style={style.input} rounded>
          <Icon style={{ color: 'white' }} active name='lock' />
          <Input style={{ color: 'white' }} secureTextEntry={true} placeholderTextColor="white" placeholder='Password' />
        </Item>

        <Button block>
          <Text style={{color :'white'}}>Next</Text>
        </Button>      
          </Animated.View>
      </ImageBackground>
      </Animated.View>
    );
  }
}
AppRegistry.registerComponent('AwesomeProject', () => App);```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.