摘要:
装包: 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 阅读全文
摘要:
router/config.js: import Login from '../views/light/login/Login' import Register from '../views/light/register/Index' import ForgetPassword from '../v 阅读全文
摘要:
装包: yarn add @react-navigation/material-top-tabs react-native-tab-view npx expo install react-native-pager-view import React from 'react' import { Vie 阅读全文
摘要:
--disable-web-security --user-data-dir=C:\MyChromeDevUserData "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --u 阅读全文
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Docum 阅读全文
摘要:
Index.js: import React from 'react' import { View, Text, ScrollView, Image, Modal, TouchableWithoutFeedback, } from 'react-native' import useList from 阅读全文
摘要:
import { Dimensions } from 'react-native' console.log('Dimensions', Dimensions.get('window')) 参考链接: https://www.reactnative.cn/docs/next/dimensions#%E 阅读全文
摘要:
mMeArrowIcon: {fontSize: 30, color: '#999', transform: [{rotate: '180deg'}]}, <Icon name="arrow" style={styles.mMeArrowIcon}></Icon> 参考链接: https://rea 阅读全文
摘要:
<Text style={styles.mMeNickname} ellipsizeMode="tail" numberOfLines={1} > {userInfo.nickname} </Text> 参考链接: https://www.reactnative.cn/docs/text#ellip 阅读全文
摘要:
本组件用于解决一个常见的尴尬问题:手机上弹出的键盘常常会挡住当前的视图。本组件可以自动根据键盘的高度,调整自身的 height 或底部的 padding,以避免被遮挡。 <KeyboardAvoidingView behavior={Platform.OS == 'ios' ? 'padding' 阅读全文