{"id":1032,"date":"2022-10-17T06:33:03","date_gmt":"2022-10-17T05:33:03","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=1032"},"modified":"2023-09-03T18:00:27","modified_gmt":"2023-09-03T17:00:27","slug":"react-native-select-dropdown-for-android-and-ios","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/","title":{"rendered":"React Native Select Dropdown For Android and iOS"},"content":{"rendered":"\n<p>The select dropdown feature is useful for presenting users with a list of predefined options which they can select from.<\/p>\n\n\n\n<p>To achieve this in React Native, we make use of the <strong><em>react-native-select-dropdown<\/em><\/strong><\/p>\n\n\n\n<p>The <strong><em>react-native-select-dropdown<\/em><\/strong> is a highly customized dropdown | select | picker | menu for react native that works for andriod and iOS platforms.<\/p>\n\n\n\n<p>First, we install this dependency in our application.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">yarn add react-native-select-dropdown<\/code><\/pre>\n\n\n\n<p>Then we can use in any of the following ways:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"jsx\" class=\"language-jsx\">import React from 'react';\nimport {View, Text, SafeAreaView, StatusBar, Dimensions, StyleSheet, ScrollView, Image} from 'react-native';\nconst {width} = Dimensions.get('window');\nimport FontAwesome from 'react-native-vector-icons\/FontAwesome';\nimport Ionicons from 'react-native-vector-icons\/Ionicons';\nimport SelectDropdown from 'react-native-select-dropdown';\n\nexport default Demo1 = () => {\n  const countries = [\n    'Egypt',\n    'Canada',\n    'Australia',\n    'Ireland',\n    'Brazil',\n    'England',\n    'Dubai',\n    'France',\n    'Germany',\n    'Saudi Arabia',\n    'Argentina',\n    'India',\n  ];\n  const countriesWithFlags = [\n    {title: 'Egypt', image: require('.\/Images\/Egypt.png')},\n    {title: 'Canada', image: require('.\/Images\/Canada.png')},\n    {title: 'Australia', image: require('.\/Images\/Australia.png')},\n    {title: 'Ireland', image: require('.\/Images\/Ireland.png')},\n    {title: 'Brazil', image: require('.\/Images\/Brazil.png')},\n    {title: 'England', image: require('.\/Images\/England.jpg')},\n    {title: 'Dubai', image: require('.\/Images\/Dubai.png')},\n  ];\n\n  const renderHeader = () => {\n    return (\n      &lt;View style={[styles.header, styles.shadow]}>\n        &lt;Text style={styles.headerTitle}>{'Demo 1'}&lt;\/Text>\n      &lt;\/View>\n    );\n  };\n\n  return (\n    &lt;SafeAreaView style={styles.saveAreaViewContainer}>\n      &lt;StatusBar backgroundColor=\"#FFF\" barStyle=\"dark-content\" \/>\n      &lt;View style={styles.viewContainer}>\n        {renderHeader()}\n        &lt;ScrollView\n          showsVerticalScrollIndicator={false}\n          alwaysBounceVertical={false}\n          contentContainerStyle={styles.scrollViewContainer}>\n          &lt;SelectDropdown\n            data={countries}\n            \/\/ defaultValueByIndex={1} \/\/ use default value by index or default value\n            \/\/ defaultValue={'Canada'} \/\/ use default value by index or default value\n            onSelect={(selectedItem, index) => {\n              console.log(selectedItem, index);\n            }}\n            buttonTextAfterSelection={(selectedItem, index) => {\n              return selectedItem;\n            }}\n            rowTextForSelection={(item, index) => {\n              return item;\n            }}\n          \/>\n\n          &lt;SelectDropdown\n            data={countries}\n            \/\/ defaultValueByIndex={1}\n            \/\/ defaultValue={'Egypt'}\n            onSelect={(selectedItem, index) => {\n              console.log(selectedItem, index);\n            }}\n            defaultButtonText={'Select country'}\n            buttonTextAfterSelection={(selectedItem, index) => {\n              return selectedItem;\n            }}\n            rowTextForSelection={(item, index) => {\n              return item;\n            }}\n            buttonStyle={styles.dropdown1BtnStyle}\n            buttonTextStyle={styles.dropdown1BtnTxtStyle}\n            renderDropdownIcon={isOpened => {\n              return &lt;FontAwesome name={isOpened ? 'chevron-up' : 'chevron-down'} color={'#444'} size={18} \/>;\n            }}\n            dropdownIconPosition={'right'}\n            dropdownStyle={styles.dropdown1DropdownStyle}\n            rowStyle={styles.dropdown1RowStyle}\n            rowTextStyle={styles.dropdown1RowTxtStyle}\n          \/>\n\n          &lt;SelectDropdown\n            data={countries}\n            \/\/ defaultValueByIndex={1}\n            \/\/ defaultValue={'England'}\n            onSelect={(selectedItem, index) => {\n              console.log(selectedItem, index);\n            }}\n            defaultButtonText={'Select country'}\n            buttonTextAfterSelection={(selectedItem, index) => {\n              return selectedItem;\n            }}\n            rowTextForSelection={(item, index) => {\n              return item;\n            }}\n            buttonStyle={styles.dropdown2BtnStyle}\n            buttonTextStyle={styles.dropdown2BtnTxtStyle}\n            renderDropdownIcon={isOpened => {\n              return &lt;FontAwesome name={isOpened ? 'chevron-up' : 'chevron-down'} color={'#FFF'} size={18} \/>;\n            }}\n            dropdownIconPosition={'right'}\n            dropdownStyle={styles.dropdown2DropdownStyle}\n            rowStyle={styles.dropdown2RowStyle}\n            rowTextStyle={styles.dropdown2RowTxtStyle}\n          \/>\n\n          &lt;SelectDropdown\n            data={countriesWithFlags}\n            \/\/ defaultValueByIndex={1}\n            \/\/ defaultValue={{\n            \/\/   title: 'England',\n            \/\/   image: require('.\/Images\/England.jpg'),\n            \/\/ }}\n            onSelect={(selectedItem, index) => {\n              console.log(selectedItem, index);\n            }}\n            buttonStyle={styles.dropdown3BtnStyle}\n            renderCustomizedButtonChild={(selectedItem, index) => {\n              return (\n                &lt;View style={styles.dropdown3BtnChildStyle}>\n                  {selectedItem ? (\n                    &lt;Image source={selectedItem.image} style={styles.dropdown3BtnImage} \/>\n                  ) : (\n                    &lt;Ionicons name=\"md-earth-sharp\" color={'#444'} size={32} \/>\n                  )}\n                  &lt;Text style={styles.dropdown3BtnTxt}>{selectedItem ? selectedItem.title : 'Select country'}&lt;\/Text>\n                  &lt;FontAwesome name=\"chevron-down\" color={'#444'} size={18} \/>\n                &lt;\/View>\n              );\n            }}\n            dropdownStyle={styles.dropdown3DropdownStyle}\n            rowStyle={styles.dropdown3RowStyle}\n            renderCustomizedRowChild={(item, index) => {\n              return (\n                &lt;View style={styles.dropdown3RowChildStyle}>\n                  &lt;Image source={item.image} style={styles.dropdownRowImage} \/>\n                  &lt;Text style={styles.dropdown3RowTxt}>{item.title}&lt;\/Text>\n                &lt;\/View>\n              );\n            }}\n          \/>\n\n          &lt;SelectDropdown\n            data={countriesWithFlags}\n            \/\/ defaultValueByIndex={1}\n            \/\/ defaultValue={'India'}\n            onSelect={(selectedItem, index) => {\n              console.log(selectedItem, index);\n            }}\n            defaultButtonText={'Select country'}\n            buttonTextAfterSelection={(selectedItem, index) => {\n              return selectedItem.title;\n            }}\n            rowTextForSelection={(item, index) => {\n              return item.title;\n            }}\n            buttonStyle={styles.dropdown4BtnStyle}\n            buttonTextStyle={styles.dropdown4BtnTxtStyle}\n            renderDropdownIcon={isOpened => {\n              return &lt;FontAwesome name={isOpened ? 'chevron-up' : 'chevron-down'} color={'#444'} size={18} \/>;\n            }}\n            dropdownIconPosition={'left'}\n            dropdownStyle={styles.dropdown4DropdownStyle}\n            rowStyle={styles.dropdown4RowStyle}\n            rowTextStyle={styles.dropdown4RowTxtStyle}\n          \/>\n        &lt;\/ScrollView>\n      &lt;\/View>\n    &lt;\/SafeAreaView>\n  );\n};\n\nconst styles = StyleSheet.create({\n  shadow: {\n    shadowColor: '#000',\n    shadowOffset: {width: 0, height: 6},\n    shadowOpacity: 0.1,\n    shadowRadius: 10,\n    elevation: 10,\n  },\n  header: {\n    flexDirection: 'row',\n    width,\n    height: 50,\n    alignItems: 'center',\n    justifyContent: 'center',\n    backgroundColor: '#F6F6F6',\n  },\n  headerTitle: {color: '#000', fontWeight: 'bold', fontSize: 16},\n  saveAreaViewContainer: {flex: 1, backgroundColor: '#FFF'},\n  viewContainer: {flex: 1, width, backgroundColor: '#FFF'},\n  scrollViewContainer: {\n    flexGrow: 1,\n    justifyContent: 'space-between',\n    alignItems: 'center',\n    paddingVertical: '10%',\n    paddingBottom: '20%',\n  },\n\n  dropdown1BtnStyle: {\n    width: '80%',\n    height: 50,\n    backgroundColor: '#FFF',\n    borderRadius: 8,\n    borderWidth: 1,\n    borderColor: '#444',\n  },\n  dropdown1BtnTxtStyle: {color: '#444', textAlign: 'left'},\n  dropdown1DropdownStyle: {backgroundColor: '#EFEFEF'},\n  dropdown1RowStyle: {backgroundColor: '#EFEFEF', borderBottomColor: '#C5C5C5'},\n  dropdown1RowTxtStyle: {color: '#444', textAlign: 'left'},\n\n  dropdown2BtnStyle: {\n    width: '80%',\n    height: 50,\n    backgroundColor: '#444',\n    borderRadius: 8,\n  },\n  dropdown2BtnTxtStyle: {\n    color: '#FFF',\n    textAlign: 'center',\n    fontWeight: 'bold',\n  },\n  dropdown2DropdownStyle: {\n    backgroundColor: '#444',\n    borderBottomLeftRadius: 12,\n    borderBottomRightRadius: 12,\n  },\n  dropdown2RowStyle: {backgroundColor: '#444', borderBottomColor: '#C5C5C5'},\n  dropdown2RowTxtStyle: {\n    color: '#FFF',\n    textAlign: 'center',\n    fontWeight: 'bold',\n  },\n\n  dropdown3BtnStyle: {\n    width: '80%',\n    height: 50,\n    backgroundColor: '#FFF',\n    paddingHorizontal: 0,\n    borderWidth: 1,\n    borderRadius: 8,\n    borderColor: '#444',\n  },\n  dropdown3BtnChildStyle: {\n    flex: 1,\n    flexDirection: 'row',\n    justifyContent: 'space-between',\n    alignItems: 'center',\n    paddingHorizontal: 18,\n  },\n  dropdown3BtnImage: {width: 45, height: 45, resizeMode: 'cover'},\n  dropdown3BtnTxt: {\n    color: '#444',\n    textAlign: 'center',\n    fontWeight: 'bold',\n    fontSize: 24,\n    marginHorizontal: 12,\n  },\n  dropdown3DropdownStyle: {backgroundColor: 'slategray'},\n  dropdown3RowStyle: {\n    backgroundColor: 'slategray',\n    borderBottomColor: '#444',\n    height: 50,\n  },\n  dropdown3RowChildStyle: {\n    flex: 1,\n    flexDirection: 'row',\n    justifyContent: 'flex-start',\n    alignItems: 'center',\n    paddingHorizontal: 18,\n  },\n  dropdownRowImage: {width: 45, height: 45, resizeMode: 'cover'},\n  dropdown3RowTxt: {\n    color: '#F1F1F1',\n    textAlign: 'center',\n    fontWeight: 'bold',\n    fontSize: 24,\n    marginHorizontal: 12,\n  },\n\n  dropdown4BtnStyle: {\n    width: '50%',\n    height: 50,\n    backgroundColor: '#FFF',\n    borderRadius: 8,\n    borderWidth: 1,\n    borderColor: '#444',\n  },\n  dropdown4BtnTxtStyle: {color: '#444', textAlign: 'left'},\n  dropdown4DropdownStyle: {backgroundColor: '#EFEFEF'},\n  dropdown4RowStyle: {backgroundColor: '#EFEFEF', borderBottomColor: '#C5C5C5'},\n  dropdown4RowTxtStyle: {color: '#444', textAlign: 'left'},\n});<\/code><\/pre>\n\n\n\n<p>To use the dropdown icon, you need to <a href=\"https:\/\/www.npmjs.com\/package\/react-native-vector-icons\" target=\"_blank\" rel=\"noreferrer noopener\">add <strong><em>react-native-vector-icons<\/em><\/strong><\/a> to your project.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-result\">Result:<\/h2>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/10\/dropdown.gif\" alt=\"\" class=\"wp-image-1034\" style=\"width:-23px;height:-49px\" width=\"-23\" height=\"-49\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-see-also\">See Also<\/h2>\n\n\n\n<p><a href=\"https:\/\/codeflarelimited.com\/blog\/how-to-use-google-places-autocomplete-in-react-native\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to use Google Places Autocomplete Search in React Native<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The select dropdown feature is useful for presenting users with a list of predefined options which they can<\/p>\n","protected":false},"author":1,"featured_media":1074,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-1032","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softare-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>React Native Select Dropdown For Android and iOS<\/title>\n<meta name=\"description\" content=\"The select dropdown feature is useful for presenting users with a list of predefined options which they can select from.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"React Native Select Dropdown For Android and iOS\" \/>\n<meta property=\"og:description\" content=\"The select dropdown feature is useful for presenting users with a list of predefined options which they can select from.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-17T05:33:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-03T17:00:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-2022-11-13-at-07.59.48.png\" \/>\n\t<meta property=\"og:image:width\" content=\"929\" \/>\n\t<meta property=\"og:image:height\" content=\"483\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"React Native Select Dropdown For Android and iOS\",\"datePublished\":\"2022-10-17T05:33:03+00:00\",\"dateModified\":\"2023-09-03T17:00:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/\"},\"wordCount\":104,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/Screenshot-2022-11-13-at-07.59.48.png\",\"articleSection\":[\"softare development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/\",\"name\":\"React Native Select Dropdown For Android and iOS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/Screenshot-2022-11-13-at-07.59.48.png\",\"datePublished\":\"2022-10-17T05:33:03+00:00\",\"dateModified\":\"2023-09-03T17:00:27+00:00\",\"description\":\"The select dropdown feature is useful for presenting users with a list of predefined options which they can select from.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/Screenshot-2022-11-13-at-07.59.48.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/Screenshot-2022-11-13-at-07.59.48.png\",\"width\":929,\"height\":483,\"caption\":\"react native select dropdown\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/react-native-select-dropdown-for-android-and-ios\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"softare development\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/softare-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"React Native Select Dropdown For Android and iOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"React Native Select Dropdown For Android and iOS","description":"The select dropdown feature is useful for presenting users with a list of predefined options which they can select from.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/","og_locale":"en_US","og_type":"article","og_title":"React Native Select Dropdown For Android and iOS","og_description":"The select dropdown feature is useful for presenting users with a list of predefined options which they can select from.","og_url":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2022-10-17T05:33:03+00:00","article_modified_time":"2023-09-03T17:00:27+00:00","og_image":[{"width":929,"height":483,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-2022-11-13-at-07.59.48.png","type":"image\/png"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"React Native Select Dropdown For Android and iOS","datePublished":"2022-10-17T05:33:03+00:00","dateModified":"2023-09-03T17:00:27+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/"},"wordCount":104,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-2022-11-13-at-07.59.48.png","articleSection":["softare development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/","url":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/","name":"React Native Select Dropdown For Android and iOS","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-2022-11-13-at-07.59.48.png","datePublished":"2022-10-17T05:33:03+00:00","dateModified":"2023-09-03T17:00:27+00:00","description":"The select dropdown feature is useful for presenting users with a list of predefined options which they can select from.","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-2022-11-13-at-07.59.48.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-2022-11-13-at-07.59.48.png","width":929,"height":483,"caption":"react native select dropdown"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/react-native-select-dropdown-for-android-and-ios\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"softare development","item":"https:\/\/codeflarelimited.com\/blog\/softare-development\/"},{"@type":"ListItem","position":3,"name":"React Native Select Dropdown For Android and iOS"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/10\/Screenshot-2022-11-13-at-07.59.48.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/1032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=1032"}],"version-history":[{"count":3,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/1032\/revisions"}],"predecessor-version":[{"id":1465,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/1032\/revisions\/1465"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/1074"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=1032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=1032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=1032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}