- 博客(7)
- 收藏
- 关注
转载 MVP实现注册登录
Model bean public class User { private String username; private String password; public User(String username, String password) { this.username = username; this.password = password; } public S...
2018-10-21 19:35:28 232
原创 RN 上拉刷新下拉加载
import React, { Component } from “react”; import { TouchableOpacity } from “react-native”; import { getData } from “…/comm/Fetch”; import RefreshListView, { RefreshState } from “react-native-refresh-l...
2018-10-17 09:39:57 419
原创 RN style的常用布局页面属性
flexDirection容器属性: row | row-reverse | column | column-reverse 该属性决定主轴的方向(即项目的排列方向)。 row:主轴为水平方向,起点在左端。 row-reverse:主轴为水平方向,起点在右端。 column(默认值):主轴为垂直方向,起点在上沿。 column-reverse:主轴为垂直方向,起点在下沿。 justifyConte...
2018-09-21 11:27:53 1321
原创 RN 加载到html
import React, { Component } from “react”; import { TouchableOpacity } from “react-native”; import { getData } from “./Fecth”; import RefreshListView, { RefreshState } from “react-native-refresh-lis...
2018-09-20 20:06:29 965
原创 RN Fetch工具类
export const baseUrl = “”; // 拼接get参数 export const getParamsUrl = (url, params) => { let paramsArray = []; Object.keys(params).forEach(key => paramsArray.push(key + “=” + params[key])); ...
2018-09-20 20:06:26 249
原创 RN 顶部导航
import React from “react”; import List from “../fragment/List”; import { createTabNavigator } from “react-navigation”; const Good = () => { return ; }; const Share = () => { return ; ...
2018-09-20 20:06:00 549
原创 RN 底部导航+图标
import React from “react”; import { createBottomTabNavigator } from “react-navigation”; import Ionicons from “react-native-vector-icons/Ionicons”; import My from “../My”; import Publish from “../P...
2018-09-20 20:05:53 1164
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人