I am a newbie trying to learn React Native. my method of learning is usually to analyze a whole code and learn from it. I have created an example scenario below. if you create sample codes that will perform this scenario. You will be useful to me and those who visit this page. Thanks in advance for your help.
Json file contain this
[ {
"Apple":["Red Membrane","Green Membrane","From Trees","spherical"],
"Peach":["spherical","Red Membrane","From Trees"],
"Banana":["Bar Shaped","Yellow Membrane","From Semi Trees"],
"WaterMelon":["Green Membrane","Spherical","Herbaceous"],
"Grape":["Spherical","From Semi Trees","Yellow Membrane","Green Memrane","Red Membrane"]
}]
Let’s get the list from the json file. But let’s delete the same values. Our output will look like the following.
-Red Membrane
-Green Membrane
-Yellow Membrane
-From Trees
-Spherical
-Herbaceous
-From Semi Trees
-Bar Shaped
Apple, Banana, Water Melon, Peach, Grape
Now Selecting from list -From Semi Trees
New list is
-Bar Shaped
-Yellow Membrane
-*From Semi Trees*
-Spherical
-Green Memrane
-Red Membrane
results: Banana, Grappe
But: -From Semi Trees is not selecteble
And New selections -Spherical
New List Is
-Green Membrane
-Spherical
-From Semi Trees
-Yellow Membrane
-Green Memrane
Result: Grape
End of the action. Because result count is one. %100 Grape.
Note: json file maybe created incorrectly. A better json architecture can be considered for this scenario.