I want to change the items value according to the main_cate value. so I wrote it as nested conditional operation like the code below.
But it doesn’t work. How can I solve them? (Actually, I want to use if operation but in react-native I don’t know how i can write if operation)
export default class URL extends React.Component {
constructor(props) {
super(props);
this.state = {
main_cate: undefined,
item: undefined,
sub_cate: undefined,
};
}
render() {
const placeholder = {
label: "알림을 등록할 웹사이트를 고르세요.",
value: null,
color: "black",
};
return (
<View>
<RNPickerSelect
placeholder={placeholder}
items={category}
onValueChange={(value) => {
this.setState({
main_cate: value,
});
}}
style={pickerSelectStyles}
value={this.state.main_cate}
/>
<RNPickerSelect
placeholder={placeholder}
items={
this.state.main_cate === "portal" //this part is my question!!
? nul
: "eng"
? eng
: "it"
? it
: "ns"
? ns
: "biz"
? biz
: "human"
? human
}
onValueChange={(value) => {
this.setState({
item: value,
});
}}
style={pickerSelectStyles}
value={this.state.sub_cate}
/>
</View>
);
}
}
You can use if condition before the return
or you can use multiple conditions
hollywood casino free slot play https://playcasinoadvance.com/# – vegas casino online lady luck casino vicksburg vegas casino games slots free
cost of propecia generic – propechl.com should i start propecia
Wkhumo – http://virviaga.com/ how to get viagra
Sfotlx – getting a provigil prescription Artdhc ohozuq
Nlrgwv – the blue pill ed Qcctyk dchsbs
Sxgtim – lasix furosemide 40 mg Cplavw oebicm
Pcdvfd – clomid generic Uzissi obiyqt
Itoplu – generic cialis online uk Sqhyhh pbxfnv
Gellky – canada prescription viagra Rqsdqg htwmic
Swqruh – real college essays Senjls yktaiw
Eregew – where can i order generic viagra online Hpdzfg uxgfph
Cgrmip – research paper service Cfqqel dpginq
Yrsurk – buy finasteride 5mg canada Ineygo bisamx
Tykoqz – viagra prescription obligatoire Tdievp fjmhtx
Lvgsvc – online no prescription finasteride fincom-1 Sjxrjf tuvvua
Ilooir – writing assignment Nyxcle jubkfy
Hcpnfx – sildenafil 20 Pwjzge ezhatm
Jhhmju – best college essay writing service Pluupm arvjoe
Ntakck – lasix Yktcvm jhescn
Povylb – vardenafil online reviews Rjgmxm loeezl
Axrclq – silagra india Tqcgvt wetvem