摘要: http://www.voidcn.com/article/p-vijhprhu-buo.html 直接在View上绑定点击事件,是没有用的。要使任何元素处理React-Native UI中的触摸/单击事件,您需要将元素放在TouchableOpacity,TouchableWithoutFeedb 阅读全文
posted @ 2020-01-16 17:10 liuw_flexi 阅读(7408) 评论(0) 推荐(1) 编辑
摘要: //通过此属性可以获取View的宽高和相对父级的位置 onLayout = {(event)=>console.log('event',event.nativeEvent.layout)} https://www.hangge.com/blog/cache/detail_1747.html 阅读全文
posted @ 2020-01-16 17:07 liuw_flexi 阅读(1690) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/isaisai/article/details/49801701?_t_t_t=0.5862080130443164 react native Text 上无法指定borderWidth 等一系列属性, 解决方法,在Text 外面添加一个View ,在Vi 阅读全文
posted @ 2020-01-16 17:06 liuw_flexi 阅读(164) 评论(0) 推荐(0) 编辑
摘要: import React, { Component, Fragment } from 'react' import { StyleSheet, Text, View, TouchableOpacity, Dimensions } from 'react-native' import moment f 阅读全文
posted @ 2020-01-16 17:02 liuw_flexi 阅读(625) 评论(0) 推荐(0) 编辑
摘要: 饿了么App->美食模块这个分类 可以参考:https://segmentfault.com/a/1190000015551664?utm_source=tag-newest 关键步骤: 阅读全文
posted @ 2020-01-16 17:00 liuw_flexi 阅读(872) 评论(0) 推荐(0) 编辑