Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native loop in render

{
  countryCodes.map(
    ({name,code,emoji}): React.ReactElement<any> => {
    return (
    <Picker.Item label={emoji+' '+name} value={code} key={name} />
    );
},
  )
}

use this in jsx anywhere use want to use
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #loop #render
ADD COMMENT
Topic
Name
3+2 =