上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 29 下一页
摘要: 想在某个页面中设置导航栏,title + 左右按钮(按钮上肯定需要有事件) 阅读全文
posted @ 2019-09-18 17:45 liuw_flexi 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(2974) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 使用TouchableOpacity组件 实现单击事件只需要声明onPress属性即可,其他同理,实现onPressIn,onPressOut,onLongPress 阅读全文
posted @ 2019-09-12 16:20 liuw_flexi 阅读(3507) 评论(0) 推荐(0) 编辑
摘要: 接上一篇: /pages/SectionListDemo.js import React, {Fragment,Component} from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, 阅读全文
posted @ 2019-09-03 19:33 liuw_flexi 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 接上一篇代码: 只修改了FlatListDemo.js里面的代码 import React, {Fragment,Component} from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar 阅读全文
posted @ 2019-09-03 16:56 liuw_flexi 阅读(2587) 评论(3) 推荐(0) 编辑
摘要: 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 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 其他代码接上篇文章 createDrawerNavigator 抽屉 createSwitchNavigator 模拟登录=>主界面 index.js AppNavigators.js import React from 'react'; //只要在页面中使用了基础组件 都需要导入这句话 不然会报错 阅读全文
posted @ 2019-09-01 17:49 liuw_flexi 阅读(852) 评论(6) 推荐(1) 编辑
摘要: 在上次的代码中添加: AppNavigators.js import React from 'react'; //只要在页面中使用了基础组件 都需要导入这句话 不然会报错 import {Button,Platform} from 'react-native'; import { createSta 阅读全文
posted @ 2019-09-01 15:28 liuw_flexi 阅读(2576) 评论(0) 推荐(1) 编辑
摘要: 一定要参考官网: 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 阅读(1628) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 29 下一页