This repository contains the following branches:
react-native-training / react-native-animations Goto Github PK
View Code? Open in Web Editor NEWReact Native Animations
React Native Animations
This repository contains the following branches:
To fix this runtime error .babelrc
needs to be created in the project directory.
The file text should read: { "presets": ["react-native"] }
.
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);```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.