更新expo sdk版本到50
This commit is contained in:
commit
b3df69c9d9
|
@ -150,7 +150,7 @@ function StreamerCard({ data }) {
|
||||||
style={tailwind("flex-row h-12 justify-between items-center mx-4")}
|
style={tailwind("flex-row h-12 justify-between items-center mx-4")}
|
||||||
>
|
>
|
||||||
<View style={tailwind("flex-row")}>
|
<View style={tailwind("flex-row")}>
|
||||||
{data?.tag.map((item, index) => {
|
{data?.tag?.map((item, index) => {
|
||||||
if (index > 2) return;
|
if (index > 2) return;
|
||||||
return (
|
return (
|
||||||
<View
|
<View
|
||||||
|
@ -168,7 +168,7 @@ function StreamerCard({ data }) {
|
||||||
})}
|
})}
|
||||||
</View>
|
</View>
|
||||||
<View style={tailwind("flex-row flex-nowrap")}>
|
<View style={tailwind("flex-row flex-nowrap")}>
|
||||||
{data?.platforms.map((item, index) => {
|
{data?.platforms?.map((item, index) => {
|
||||||
if (index > 5) return;
|
if (index > 5) return;
|
||||||
return (
|
return (
|
||||||
<View key={index} style={tailwind("h-5")}>
|
<View key={index} style={tailwind("h-5")}>
|
||||||
|
|
58
package.json
58
package.json
|
@ -21,63 +21,63 @@
|
||||||
"dev:tailwind": "concurrently \"tailwindcss --input input.css --output tailwind.css --no-autoprefixer --watch\" \"tailwind-rn --watch\""
|
"dev:tailwind": "concurrently \"tailwindcss --input input.css --output tailwind.css --no-autoprefixer --watch\" \"tailwind-rn --watch\""
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@react-native-async-storage/async-storage": "1.18.2",
|
"@react-native-async-storage/async-storage": "1.21.0",
|
||||||
"@react-native-picker/picker": "2.4.10",
|
"@react-native-picker/picker": "2.6.1",
|
||||||
"@react-navigation/bottom-tabs": "^6.5.8",
|
"@react-navigation/bottom-tabs": "^6.5.8",
|
||||||
"@react-navigation/native": "^6.1.7",
|
"@react-navigation/native": "^6.1.7",
|
||||||
"@react-navigation/native-stack": "^6.9.13",
|
"@react-navigation/native-stack": "^6.9.13",
|
||||||
"@rneui/base": "^4.0.0-rc.8",
|
"@rneui/base": "^4.0.0-rc.8",
|
||||||
"@rneui/themed": "^4.0.0-rc.8",
|
"@rneui/themed": "^4.0.0-rc.8",
|
||||||
"@shopify/flash-list": "1.4.3",
|
"@shopify/flash-list": "1.6.3",
|
||||||
"dayjs": "^1.11.9",
|
"dayjs": "^1.11.9",
|
||||||
"expo": "^49.0.0",
|
"expo": "^50.0.14",
|
||||||
"expo-application": "~5.3.0",
|
"expo-application": "~5.8.3",
|
||||||
"expo-av": "~13.4.1",
|
"expo-av": "~13.10.5",
|
||||||
"expo-camera": "~13.4.4",
|
"expo-camera": "~14.1.1",
|
||||||
"expo-clipboard": "~4.3.1",
|
"expo-clipboard": "~5.0.1",
|
||||||
"expo-constants": "~14.4.2",
|
"expo-constants": "~15.4.5",
|
||||||
"expo-crypto": "~12.4.1",
|
"expo-crypto": "~12.8.1",
|
||||||
"expo-device": "~5.4.0",
|
"expo-device": "~5.9.3",
|
||||||
"expo-file-system": "~15.4.4",
|
"expo-file-system": "~16.0.8",
|
||||||
"expo-image": "~1.3.4",
|
"expo-image": "~1.10.6",
|
||||||
"expo-image-multiple-picker": "^4.8.3",
|
"expo-image-multiple-picker": "^4.8.3",
|
||||||
"expo-intent-launcher": "~10.7.0",
|
"expo-intent-launcher": "~10.11.0",
|
||||||
"expo-linear-gradient": "~12.3.0",
|
"expo-linear-gradient": "~12.7.2",
|
||||||
"expo-linking": "~5.0.2",
|
"expo-linking": "~6.2.2",
|
||||||
"expo-media-library": "~15.4.1",
|
"expo-media-library": "~15.9.1",
|
||||||
"expo-network": "~5.4.0",
|
"expo-network": "~5.8.0",
|
||||||
"expo-splash-screen": "~0.20.5",
|
"expo-splash-screen": "~0.26.4",
|
||||||
"expo-status-bar": "~1.6.0",
|
"expo-status-bar": "~1.11.1",
|
||||||
"expo-updates": "~0.18.17",
|
"expo-updates": "~0.24.12",
|
||||||
"expo-video-thumbnails": "~7.4.0",
|
"expo-video-thumbnails": "~7.9.0",
|
||||||
"formik": "^2.4.4",
|
"formik": "^2.4.4",
|
||||||
"jsencrypt": "^3.3.2",
|
"jsencrypt": "^3.3.2",
|
||||||
"mime": "^3.0.0",
|
"mime": "^3.0.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
"react-native": "0.72.6",
|
"react-native": "0.73.6",
|
||||||
"react-native-gifted-chat": "^2.4.0",
|
"react-native-gifted-chat": "^2.4.0",
|
||||||
"react-native-image-zoom-viewer": "^3.0.1",
|
"react-native-image-zoom-viewer": "^3.0.1",
|
||||||
"react-native-pager-view": "6.2.0",
|
"react-native-pager-view": "6.2.0",
|
||||||
"react-native-picker-select": "^8.1.0",
|
"react-native-picker-select": "^8.1.0",
|
||||||
"react-native-safe-area-context": "4.6.3",
|
"react-native-safe-area-context": "4.8.2",
|
||||||
"react-native-screens": "~3.22.0",
|
"react-native-screens": "~3.29.0",
|
||||||
"react-native-svg": "13.9.0",
|
"react-native-svg": "14.1.0",
|
||||||
"react-native-swiper": "^1.6.0",
|
"react-native-swiper": "^1.6.0",
|
||||||
"react-native-tab-view": "^3.5.2",
|
"react-native-tab-view": "^3.5.2",
|
||||||
"react-native-toast-message": "^2.1.6",
|
"react-native-toast-message": "^2.1.6",
|
||||||
"react-native-web": "~0.19.6",
|
"react-native-web": "~0.19.6",
|
||||||
"react-native-webview": "13.2.2",
|
"react-native-webview": "13.6.4",
|
||||||
"tailwind-rn": "^4.2.0"
|
"tailwind-rn": "^4.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.12.9",
|
"@babel/core": "^7.12.9",
|
||||||
"@types/react": "~18.2.14",
|
"@types/react": "~18.2.45",
|
||||||
"@types/react-native": "~0.64.12",
|
"@types/react-native": "~0.64.12",
|
||||||
"concurrently": "^8.2.1",
|
"concurrently": "^8.2.1",
|
||||||
"postcss": "^8.4.29",
|
"postcss": "^8.4.29",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"typescript": "^5.1.3"
|
"typescript": "^5.3.0"
|
||||||
},
|
},
|
||||||
"private": true
|
"private": true
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
//存储数据
|
//存储数据
|
||||||
import AsyncStorage from "@react-native-async-storage/async-storage";
|
import AsyncStorage from "@react-native-async-storage/async-storage";
|
||||||
//查看客户端版本号
|
|
||||||
import * as Application from "expo-application";
|
|
||||||
//查看系统版本、机型、设备类型
|
//查看系统版本、机型、设备类型
|
||||||
import * as Device from "expo-device";
|
import * as Device from "expo-device";
|
||||||
import { Platform } from "react-native";
|
import { Platform } from "react-native";
|
||||||
|
@ -25,9 +23,10 @@ import { Platform } from "react-native";
|
||||||
|
|
||||||
//进入app时存储基本信息(b_did、b_ver、b_osver、b_dt、b_ch、b_model)
|
//进入app时存储基本信息(b_did、b_ver、b_osver、b_dt、b_ch、b_model)
|
||||||
export async function storeAppInfo() {
|
export async function storeAppInfo() {
|
||||||
|
const Application = require("expo-application");
|
||||||
async function getDid() {
|
async function getDid() {
|
||||||
if (Platform.OS === "android") {
|
if (Platform.OS === "android") {
|
||||||
return Application.androidId;
|
return Application.getAndroidId();
|
||||||
} else {
|
} else {
|
||||||
return await Application.getIosIdForVendorAsync();
|
return await Application.getIosIdForVendorAsync();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue