import React from "react"; import { StyleSheet } from "react-native"; import { Modal, Text, Layout, Spinner, Icon } from "@ui-kitten/components"; import { useModel, setModel } from "flooks"; const styles = StyleSheet.create({ backdrop: { // backgroundColor: "rgba(0, 0, 0, 0.5)", }, loadingBox: { width: 120, height: 120, borderRadius: 10, backgroundColor: "rgba(0,0,0,0.8)", alignItems: "center", justifyContent: "center", }, text: { color: "#fff", marginTop: 10, }, icon: { width: 60, height: 60, }, warning: { paddingHorizontal: 15, paddingVertical: 5, backgroundColor: "rgba(0,0,0,0.8)", borderRadius: 3, marginHorizontal: 20, }, }); export default function Loading() { const { getWordsStr } = useModel("wordsModel"); const { show, title, status } = useModel("loadingModel"); return ( 加载中... // // {status === "loading" && ( // // // {getWordsStr("loading")} // // )} // {status === "success" && ( // // // {title} // // )} // {status === "warn" && ( // // // {title} // // // )} // ); }