import * as WebBrowser from "expo-web-browser";
import * as React from "react";
import {
Image,
Platform,
StyleSheet,
TouchableOpacity,
View,
ImageBackground,
} from "react-native";
import scrollPage from "../decorator/scrollPage";
import { useModel } from "flooks";
import {
Layout,
Tab,
TabView,
Text,
useTheme,
Button,
Card,
} from "@ui-kitten/components";
import FormInput from "../components/FormInput";
import { useFocusEffect } from "@react-navigation/native";
import ScrollPage from "../components/ScrollPage";
import NavHeaderBar from "../components/NavHeaderBar";
import GoodsCard from "../components/GoodsCard";
const Header = (props, title) => (
{title}
);
export default function AddGoodsClassification({ navigation, route }) {
const theme = useTheme();
const { changeBackground } = useModel("barModel");
const { setNavigation, pushRouter } = useModel("routersModel", true);
const { httpGet } = useModel("httpModel", true);
const { registerSecend, guideStep } = useModel("userModel", true);
const {
goodsClassificationTitle1,
goodsClassificationTitle2,
goodsClassificationTitle3,
} = useModel("wordsModel");
const { showDialog } = useModel("dialogModel");
const [categoryList, changeCategoryList] = React.useState([]);
const [merchantNatureList, changeMerchantNatureList] = React.useState([]);
useFocusEffect(
React.useCallback(() => {
changeBackground(theme["color-primary-500"]);
setNavigation(navigation);
}, [])
);
const [name, changeName] = React.useState("");
const [sort, changeSort] = React.useState("");
const [goodsIds, changeGoodsIds] = React.useState("");
const canNext = React.useMemo(() => {
return true;
}, [name]);
return (
<>
{
return Header(props, goodsClassificationTitle2);
}}
>
{
return Header(props, goodsClassificationTitle3);
}}
>
>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingBottom: 33,
backgroundColor: "#EEEEEE",
paddingVertical: 20,
},
tabContent: {
backgroundColor: "#fff",
marginTop: 20,
},
img: {
width: 100,
height: 100,
alignSelf: "center",
},
img2: {
width: 97,
height: 21,
alignSelf: "center",
marginTop: 2,
},
text: {
marginTop: 16,
},
layoutLeft: {
// flexDirection: "row",
paddingVertical: 10,
justifyContent: "center",
alignItems: "center",
},
form: {
paddingHorizontal: 26,
paddingVertical: 20,
},
textareaContainer: {
backgroundColor: "#F0F0F0",
height: 100,
borderRadius: 4,
},
textarea: {
textAlignVertical: "top", // hack android
fontSize: 13,
color: "#333",
paddingHorizontal: 14,
paddingVertical: 10,
height: 100,
},
});