会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
徐同保
web前端行业的小学生
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
88
下一页
2023年8月13日
Expo项目 使用Native base UI库
摘要: 装包: yarn add native-base expo install react-native-svg@12.1.1 Index.js: import React from 'react' import { View, Text } from 'react-native' import use
阅读全文
posted @ 2023-08-13 10:53 徐同保
阅读(53)
评论(0)
推荐(0)
2023年8月8日
React Navigation顶部导航自定义左侧返回按钮图标和文案
摘要: router/config.js: import Login from '../views/light/login/Login' import Register from '../views/light/register/Index' import ForgetPassword from '../v
阅读全文
posted @ 2023-08-08 17:28 徐同保
阅读(61)
评论(0)
推荐(0)
RN 使用react-navigation写可以滚动的横向导航条(expo项目)
摘要: 装包: yarn add @react-navigation/material-top-tabs react-native-tab-view npx expo install react-native-pager-view import React from 'react' import { Vie
阅读全文
posted @ 2023-08-08 16:39 徐同保
阅读(55)
评论(0)
推荐(0)
Chrome浏览器的跨域设置
摘要: --disable-web-security --user-data-dir=C:\MyChromeDevUserData "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --u
阅读全文
posted @ 2023-08-08 15:26 徐同保
阅读(65)
评论(0)
推荐(0)
2023年8月7日
css导航条毛玻璃效果(backdrop-filter: blur(4px))
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum
阅读全文
posted @ 2023-08-07 17:32 徐同保
阅读(30)
评论(0)
推荐(0)
2023年8月4日
React Native 点击图片变大,查看图片
摘要: Index.js: import React from 'react' import { View, Text, ScrollView, Image, Modal, TouchableWithoutFeedback, } from 'react-native' import useList from
阅读全文
posted @ 2023-08-04 14:45 徐同保
阅读(73)
评论(0)
推荐(0)
React Native获取手机屏幕宽高(Dimensions)
摘要: import { Dimensions } from 'react-native' console.log('Dimensions', Dimensions.get('window')) 参考链接: https://www.reactnative.cn/docs/next/dimensions#%E
阅读全文
posted @ 2023-08-04 14:03 徐同保
阅读(31)
评论(0)
推荐(0)
React Native元素旋转一定的角度
摘要: mMeArrowIcon: {fontSize: 30, color: '#999', transform: [{rotate: '180deg'}]}, <Icon name="arrow" style={styles.mMeArrowIcon}></Icon> 参考链接: https://rea
阅读全文
posted @ 2023-08-04 13:56 徐同保
阅读(24)
评论(0)
推荐(0)
React Native从文本内容尾部截取显示省略号
摘要: <Text style={styles.mMeNickname} ellipsizeMode="tail" numberOfLines={1} > {userInfo.nickname} </Text> 参考链接: https://www.reactnative.cn/docs/text#ellip
阅读全文
posted @ 2023-08-04 13:29 徐同保
阅读(46)
评论(0)
推荐(0)
2023年7月31日
react-native 输入框 被软键盘遮挡 (KeyboardAvoidingView)
摘要: 本组件用于解决一个常见的尴尬问题:手机上弹出的键盘常常会挡住当前的视图。本组件可以自动根据键盘的高度,调整自身的 height 或底部的 padding,以避免被遮挡。 <KeyboardAvoidingView behavior={Platform.OS == 'ios' ? 'padding'
阅读全文
posted @ 2023-07-31 09:02 徐同保
阅读(232)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
88
下一页
公告