会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
liuw_flexi
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
12
13
14
15
16
17
18
19
20
···
29
下一页
2019年9月18日
React Native 中 static的navigationOptions中的点击事件不能用this
摘要: 想在某个页面中设置导航栏,title + 左右按钮(按钮上肯定需要有事件)
阅读全文
posted @ 2019-09-18 17:45 liuw_flexi
阅读(503)
评论(0)
推荐(0)
2019年9月17日
React Native 之react-native-sqlite-storage
摘要: npm 官网指导: https://www.npmjs.com/package/react-native-sqlite-storage 1. 执行: npm install react-native-sqlite-storage 2.cd ios 执行pod install 3.执行react na
阅读全文
posted @ 2019-09-17 16:26 liuw_flexi
阅读(3119)
评论(0)
推荐(0)
2019年9月16日
React Native 之ScrollView
摘要: import React, { Component } from 'react' import { Text, StyleSheet, View, Button ,TouchableOpacity,Alert,ScrollView,Image} from 'react-native' import { createStackNavigator, createAppContainer } from...
阅读全文
posted @ 2019-09-16 10:31 liuw_flexi
阅读(349)
评论(0)
推荐(0)
2019年9月12日
React Native 之TouchableOpacity组件
摘要: 使用TouchableOpacity组件 实现单击事件只需要声明onPress属性即可,其他同理,实现onPressIn,onPressOut,onLongPress
阅读全文
posted @ 2019-09-12 16:20 liuw_flexi
阅读(3547)
评论(0)
推荐(0)
2019年9月3日
React Native 之SectionList
摘要: 接上一篇: /pages/SectionListDemo.js import React, {Fragment,Component} from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar,
阅读全文
posted @ 2019-09-03 19:33 liuw_flexi
阅读(288)
评论(0)
推荐(0)
React Native 之FlatList 下拉刷新和上拉加载更多
摘要: 接上一篇代码: 只修改了FlatListDemo.js里面的代码 import React, {Fragment,Component} from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar
阅读全文
posted @ 2019-09-03 16:56 liuw_flexi
阅读(2633)
评论(3)
推荐(0)
React Native 之FlatList
摘要: 1.新建项目 2.因为要用到导航跳转, 所以添加依赖,,这里拷贝这个: "dependencies": { "@types/react": "^16.9.2", "react": "16.8.6", "react-native": "^0.60.0", "react-native-gesture-h
阅读全文
posted @ 2019-09-03 15:33 liuw_flexi
阅读(838)
评论(0)
推荐(0)
2019年9月1日
React Native 之createDrawerNavigator和createSwitchNavigator
摘要: 其他代码接上篇文章 createDrawerNavigator 抽屉 createSwitchNavigator 模拟登录=>主界面 index.js AppNavigators.js import React from 'react'; //只要在页面中使用了基础组件 都需要导入这句话 不然会报错
阅读全文
posted @ 2019-09-01 17:49 liuw_flexi
阅读(864)
评论(6)
推荐(1)
React Native 之 createBottomTabNavigator,createMaterialTopTabNavigator
摘要: 在上次的代码中添加: AppNavigators.js import React from 'react'; //只要在页面中使用了基础组件 都需要导入这句话 不然会报错 import {Button,Platform} from 'react-native'; import { createSta
阅读全文
posted @ 2019-09-01 15:28 liuw_flexi
阅读(2610)
评论(0)
推荐(1)
2019年8月31日
React Native 之导航栏
摘要: 一定要参考官网: https://reactnavigation.org/docs/en/getting-started.html 代码来自慕课网:https://www.imooc.com/course/list?c=reactnative 效果图: 流程: 1.新建项目 2.修改依赖 (一定要注
阅读全文
posted @ 2019-08-31 22:09 liuw_flexi
阅读(1652)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
29
下一页
公告