App/Components/Brand.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* Created by jason on 16/7/14.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Image,
ScrollView,
ListView,
PixelRatio,
InteractionManager,
} from 'react-native';
import Common from '../Commom/constants';
import SearchHeader from '../Components/SearchHeader';
import Buttom from '../Commom/Buttom';
import BrandListView from '../Pages/BrandListView';
import {BrandAction} from '../Action/BrandAction';
import Loading from '../Commom/Loading';
let Array = [];
let passDate = {};
let isRefreshing = false;
let isLoading = true;
let offest = '';
let tag = '';
let limit = 21;//为了使得api跑起来要加上
export default class Brand extends Component {
constructor(props) {
super(props);
this.state = {
defaultNum: 0,
selectArray: [1],
};
}
componentDidMount() {
InteractionManager.runAfterInteractions(() => {
const {dispatch, BrandReducer} = this.props;
dispatch(BrandAction(1, tag, offest, limit, isRefreshing, isLoading));
});
}
onPress(type) {
}
render() {
const { BrandReducer} = this.props;
passDate = BrandReducer.BrandDate;
if (passDate.brands_title !== undefined && Array.length < passDate.brands_title.length) {
后面还有 108 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
