Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to pass React Native Component as a JSON object

const slides = ["1", "2"];

const renderItem = ({ item }) => {
  switch(item) {
    case "1": return <Page1 />;
  }
};
 
PREVIOUS NEXT
Tagged: #How #pass #React #Native #Component #JSON #object
ADD COMMENT
Topic
Name
9+1 =