From c6ee0246e74827ed62e1ff3ea23f71dfd367123b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=9D=A4?= Date: Fri, 23 Feb 2024 13:17:37 +0800 Subject: [PATCH] chore: update expo preview --- README.md | 8 ++++++- README.zh-CN.md | 8 ++++++- example/App.js | 3 ++- example/app.json | 29 ++++++++++++++++++------- example/assets/favicon.png | Bin 0 -> 2128 bytes example/babel.config.js | 6 +----- example/package.json | 26 +++++++++++----------- example/tsconfig.json | 4 ---- example/webpack.config.js | 30 -------------------------- rn-kitchen-sink/components/index.js | 4 ++-- site/desktop/src/static/home.less | 2 +- site/desktop/src/static/template.html | 2 +- 12 files changed, 55 insertions(+), 67 deletions(-) create mode 100644 example/assets/favicon.png delete mode 100644 example/tsconfig.json delete mode 100644 example/webpack.config.js diff --git a/README.md b/README.md index 01e55fe01..947bd36f8 100644 --- a/README.md +++ b/README.md @@ -35,10 +35,16 @@ A configurable Mobile UI specification and React-based implementation. - **Expo demo app** +|SDK 49+ iOS|SDK 49+ Android| +|--|--| +| [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | + +
Expo SDK history version + |Expo SDK 44|SDK 47 iOS|SDK 47 Android| |--|--|--| | [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | - +
> Open the camera app on your device and scan the code above,
need install expo app: https://expo.io/tools diff --git a/README.zh-CN.md b/README.zh-CN.md index cc5ed069d..94a12efaf 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -33,10 +33,16 @@ Ant Design 移动端设计规范。`@ant-design/react-native` 是 Ant Design 的 - **Expo demo app** +|SDK 49+ iOS|SDK 49+ Android| +|--|--| +| [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | + +
Expo SDK历史版本 + |Expo SDK 44|SDK 47 iOS|SDK 47 Android| |--|--|--| | [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | [expo/ant-design-mobile-rn](https://expo.dev/@1uokun/ant-design-mobile-rn) | - +
> 提示:使用本地原相机扫瞄上面的二维码, 需要下载 Expo App: https://expo.io/tools diff --git a/example/App.js b/example/App.js index 67af603bf..dcdb966ac 100644 --- a/example/App.js +++ b/example/App.js @@ -1,9 +1,10 @@ -import App from '@ant-design/react-native/rn-kitchen-sink/App' import { useFonts } from 'expo-font' import * as SplashScreen from 'expo-splash-screen' import React, { useCallback } from 'react' import { View } from 'react-native' import 'react-native-gesture-handler' +import 'react-native-reanimated' +import App from '../rn-kitchen-sink/App' SplashScreen.preventAutoHideAsync() diff --git a/example/app.json b/example/app.json index 656ad6ec9..585a38040 100644 --- a/example/app.json +++ b/example/app.json @@ -4,16 +4,31 @@ "expo": { "name": "@ant-design/react-native", "slug": "ant-design-mobile-rn", + "version": "5.1.0", "description": "基于蚂蚁金服移动设计规范的 React Native 组件库", - "sdkVersion": "49.0.0", "icon": "../rn-kitchen-sink/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png", "splash": { "image": "../rn-kitchen-sink/ios/KitchenSink/Images.xcassets/AppIcon.appiconset/ios-marketing-1024@1x.png" }, - "version": "5.0.3", - "entryPoint": "index.js", + "assetBundlePatterns": [ + "**/*" + ], + "experiments": { + "baseUrl": "https://1uokun.github.io/ant-design-mobile-rn/" + }, "web": { - "bundler": "metro" + "bundler": "metro", + "favicon": "./assets/favicon.png" + }, + "ios": { + "bundler": "metro", + "supportsTablet": true + }, + "android": { + "adaptiveIcon": { + "foregroundImage": "../rn-kitchen-sink/ios/KitchenSink/Images.xcassets/AppIcon.appiconset/ios-marketing-1024@1x.png", + "backgroundColor": "#ffffff" + } }, "extra": { "eas": { @@ -21,12 +36,10 @@ } }, "runtimeVersion": { - "policy": "sdkVersion" + "policy": "appVersion" }, "updates": { "url": "https://u.expo.dev/7729a68b-f881-4294-89f5-5ae751bfb2b2" - }, - "android": {}, - "ios": {} + } } } diff --git a/example/assets/favicon.png b/example/assets/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..facdb2a8e465175c8fe67217c485d8183378b4fa GIT binary patch literal 2128 zcmV-W2(R~vP)`GkSH{aQUv05U=YxrWj3X7>kWyie>?G{T1JOKtzNsv$&)Us<^CkMxUfdy~qN;h5k z_TTCbH1zd1zzi^Wiozt4FttdirUZhZ1f_iOT8(Bym_!@_9xOuc4;pVDJ#_V(1Cwsn z1zs@tAHo2z)UeRhpFg|eojAE{F?d|*rYm#5_)8WuImy5j0-mA-r92@vFi?wO7#gDpVwRV=a8vjgS7+MyjN(q&S7wRZ#@r90#b1XtEcn~m8%G4eD1)C2acMSDBa+^g0eB!l?7D^FX(C@zOkkLgm?Whs z>fjePMJ>vyd)!lNV#ZBP1E$-)91gyGK~Rd0qLzLAu_ zZiK+a0!%uccDiI|hRs-00aI`c!y*IxqqfAxy!=XH{2L@e@J1Yt;k5H*&$XG&Z5$jY zYV&e$YGr{*HIKT>GcSCx9)meh|4_eIow={b%>pj8K%jgOnI(vPe1 zv@zQP{rr@pPUp~#-oERd){)K^V`K8fBYQ%#;wbC(5*LJgI%5A#l(!80(d-s9i?2R7KuVm+-^P& z9vZ1wvskHI>PBc1hgpQD>kA`t_7#K2J@Msz^HGoHCfPV}QGl`{?FbQz7n&y~OyJQwX6tdW zth38H@&LR=XX^K4o}*FvSsJB&&@>?<4`_jR$Xv$WM%vj1{zp~K~NfR`1jpp`t5BmCX-t3GBCi=A!1bIRs)GB&4^ z0WbYFW&k`0@X%(zz9%ks|4|kJ*heg;x?gQxHAc4^!OI`kyzs}DwAx(*4AWcnu*=}j zol5ldTi`r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