前言
React Native作为大前端开发的一种技术,自然离不开各种炫酷的动效。在React Native中动效有两种实现的方式。...code
import React, { Component } from 'react';
import {
NativeModules,
LayoutAnimation,
AppRegistry...,
View,
Text,
TouchableOpacity,
} from 'react-native';
import ListViewBisc from '.....{
constructor(props) {
super(props);
this.state={
w:100,
h:50
};
}
_onPress..._onPress}>
<Text style={{width: this.state.w, height: this.state.h , backgroundColor:'#f0f0f0