
React Native
跨平台开发框架
less more
少则多,简则精
展开
-
ReactNative-SectionList
SectionList列表界面 let ListViewC = require('./ListViewC');const App: () => Node = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; return原创 2021-10-30 16:01:47 · 286 阅读 · 0 评论 -
ReactNative-FlatList九宫格
FlatList九宫格 let ListViewB = require('./ListViewB');const App: () => Node = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; return (原创 2021-10-30 15:50:12 · 428 阅读 · 0 评论 -
ReactNative-FlatList
FlatList列表界面 let ListViewA = require('./ListViewA');const App: () => Node = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; return (原创 2021-10-30 15:45:12 · 402 阅读 · 0 评论 -
ReactNative-Banner
Banner //函数式组件let Banner = require('./Banner')//Class组件// let Banner2 = require('./Banner2');const App: () => Node = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = { backgroundColor: isDarkMode ? C原创 2021-10-30 15:26:42 · 477 阅读 · 0 评论 -
ReactNative-GListView
GListView列表界面 let GListView = require('./GListView')const App: () => Node = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; return (原创 2021-10-30 15:09:38 · 194 阅读 · 0 评论 -
ReactNative-登录界面
登录界面 /**-------------第一个示例程序-----------------------**/let LoginView = require('./loginView');const App1: () => Node = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = { backgroundColor: isDarkMode ? Colo原创 2021-10-30 15:02:52 · 1126 阅读 · 0 评论 -
ReactNative的简单示例程序
第一个示例程序 /**-------------第一个示例程序-----------------------**/const App: () => Node = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; retu原创 2021-10-30 14:48:18 · 712 阅读 · 0 评论 -
ReactNative json字段key的修改
需求:需要将字段"cars",改为"data"Car.json [ { "cars": [ { "icon": "m_9_100.png", "name": "奥迪" }, { "icon": "m_97_100.png", "name": "阿斯顿·马丁" } ], "title": "A" }, {原创 2021-06-17 17:36:47 · 332 阅读 · 0 评论 -
创建ReactNative项目
1.cd 到需要建立项目的文件夹2.npx react-native init xx名称等大概10分钟后出现下图界面 3.cd 到项目的文件夹中 ,执行yarn ios 或 npx react-native run-ios等待大概3分钟后,出现下图界面4.Metro服务自动启动,ios模拟器自动启动ReactNative项目成功运行 ...原创 2021-06-04 17:33:44 · 630 阅读 · 0 评论 -
fatal: unable to access ‘https://github.com/priteshrnandgaonkar/folly.git/‘: LibreSSL SSL_connect: S
错误:解决方法:查看git配置git config --global -l检查环境变量env|grep -i proxy原创 2021-06-04 13:29:18 · 762 阅读 · 0 评论 -
HomeBrew的安装
MacOS系统使用Homebrew官方地址/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"报错curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443 解决使用本地镜像/bin/zsh -c "$(curl -fsS原创 2021-06-03 16:53:10 · 242 阅读 · 0 评论