{"id":53137,"date":"2019-06-28T12:18:56","date_gmt":"2019-06-28T06:48:56","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=53137"},"modified":"2019-06-28T15:05:18","modified_gmt":"2019-06-28T09:35:18","slug":"custom-android-native-view-in-react-native-as-component","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/","title":{"rendered":"Add Custom Android Native View In React Native As a Component"},"content":{"rendered":"<p>A recent <a title=\"React Native Development Services\" href=\"https:\/\/2thenew.xyz\/react-native-development-services\">React Native<\/a> project at the company came with an additional requirement of integrating a video player within the application.<\/p>\n<p>There already are a lot of React Native video players available, but almost all of them come with inherent shortcomings. We could not find one with the perfect implementation of overlays and other customizations which were required in our project.<\/p>\n<p>This led us to develop our own <a title=\"Write once use anywhere : React native components\" href=\"https:\/\/2thenew.xyz\/blog\/write-once-use-anywhere-react-native-components\/\">native component<\/a> for use in the application.<\/p>\n<p>This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.<\/p>\n<p><strong>Step-1: Create the view<\/strong><\/p>\n<p>The React Native application contains folders for the <a title=\"Android Application Development\" href=\"https:\/\/2thenew.xyz\/mobile-android-application-development-services\">Android<\/a> and <a title=\"iOS App Development\" href=\"https:\/\/2thenew.xyz\/mobile-ios-application-development-services\">iOS<\/a> native codes. Open the Android code using Android Studio and create the custom view (video player) using the native code. In our project, we developed the custom video player using Exp-player for Android in the native Android code.<\/p>\n<p><strong>Step-2: Create custom ViewManager class<\/strong><\/p>\n<p>Native views are created and manipulated by extending <strong>ViewManager<\/strong> or more commonly <strong>SimpleViewManager<\/strong>. A <strong>SimpleViewManager<\/strong> is convenient in this case because it applies common properties such as background color, opacity, and Flexbox layout.<\/p>\n<p>In this step, we write a class which inherits from SimpleViewManager. In this class, we select which Android view is going to be used in the React Native code.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-53139 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2019\/06\/1.png\" alt=\"Custom Android Native View In React Native As a Component\" width=\"583\" height=\"52\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/1.png 583w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/1-300x26.png 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/p>\n<p>Here SimpleViewManager&lt;VideoView&gt; is used to expose the Android native view to the React Native code.<\/p>\n<p><strong>Step-3: Implement createViewInstance method<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-53140 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2019\/06\/2.png\" alt=\"Custom Android Native View In React Native As a Component\" width=\"732\" height=\"287\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/2.png 732w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/2-300x117.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/2-624x244.png 624w\" sizes=\"auto, (max-width: 732px) 100vw, 732px\" \/><\/p>\n<p>Name returned by the <strong>getName()<\/strong> method is used to reference the native view type from JavaScript.<\/p>\n<p>Views are created in the createViewInstance method. The view should initialize itself in its default state and any properties will be set via a follow-up call to update the view.<\/p>\n<p><strong>Step-4: Expose view property setters using @ReactProp (or @ReactPropGroup) annotation<\/strong><\/p>\n<p>If we want to send some data from the React Native code to our component using props, we have to define a method in our component to accept it. For example, we defined <strong>setVideoPath<\/strong> in our component class.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-53141 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2019\/06\/3.png\" alt=\"Custom Android Native View In React Native As a Component\" width=\"736\" height=\"433\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/3.png 736w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/3-300x176.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/3-624x367.png 624w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<p><strong>Step-5: Create a packaging module<\/strong><\/p>\n<p>Since we are all set with the VideoViewManager class, now we have to register this manager class to be called from the React Native module using a Packaging module.<br \/>\nFor this, we write a class that implements the ReactPackage interface. In the createViewManager() method, we instantiate the ViewManager class that we want to expose to the React Native code.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-53142 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2019\/06\/4.png\" alt=\"Custom Android Native View In React Native As a Component\" width=\"835\" height=\"328\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/4.png 835w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/4-300x117.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/4-624x245.png 624w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><\/p>\n<p><strong>Step-6: Add the package module to the application class<\/strong><\/p>\n<p>In the application class of the React Native project, add the package module in the <strong>getPackage()<\/strong> method.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-53143 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2019\/06\/5.png\" alt=\"Custom Android Native View In React Native As a Component\" width=\"390\" height=\"166\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/5.png 390w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/5-300x127.png 300w\" sizes=\"auto, (max-width: 390px) 100vw, 390px\" \/><\/p>\n<p><strong>Step-7: Implement the javaScript module<\/strong><\/p>\n<p>The final step is to create a JavaScript module that defines the interface layer between <a title=\"Java Development Outsourcing\" href=\"https:\/\/2thenew.xyz\/java-development-services\">Java<\/a> and JavaScript for the users of the new view. To implement this, we create VideoView.js in the src folder as defined below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-53144 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2019\/06\/6.png\" alt=\"Custom Android Native View In React Native As a Component\" width=\"596\" height=\"225\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/6.png 596w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/6-300x113.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<p>Here, the first parameter for requireNativeComponent is the same one which we have already defined in ViewManager and returns by the <strong>getName()<\/strong> method.<\/p>\n<p><strong>Step-8: Use the component<\/strong><\/p>\n<p>Finally, we are ready with the native component to use in our React Native code.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-53145 size-full\" src=\"\/blog\/wp-ttn-blog\/uploads\/2019\/06\/7.png\" alt=\"Custom Android Native View In React Native As a Component\" width=\"636\" height=\"277\" srcset=\"https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/7.png 636w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/7-300x130.png 300w, https:\/\/2thenew.xyz\/blog\/wp-content\/uploads\/2019\/06\/7-624x271.png 624w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/p>\n<p>Thank you for reading the blog. I hope you enjoyed it and found this to be helpful. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A recent React Native project at the company came with an additional requirement of integrating a video player within the application. There already are a lot of React Native video players available, but almost all of them come with inherent shortcomings. We could not find one with the perfect implementation of overlays and other customizations [&hellip;]<\/p>\n","protected":false},"author":1219,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":52,"footnotes":""},"categories":[518,1],"tags":[4845,4804,4803,4805,3505],"class_list":["post-53137","post","type-post","status-publish","format-standard","hentry","category-android","category-technology","tag-android","tag-android-components","tag-android-native","tag-native-components-in-react-native","tag-react-native"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Anil Kumar Yadav\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Add Custom Android Native View In React Native As a Component\" \/>\n\t\t<meta property=\"og:description\" content=\"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Add Custom Android Native View In React Native As a Component\" \/>\n\t\t<meta name=\"twitter:description\" content=\"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#article\",\"name\":\"Custom Android Native View In React Native | TO THE NEW Blog\",\"headline\":\"Add Custom Android Native View In React Native As a Component\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anil-yadav\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"\\\/blog\\\/wp-ttn-blog\\\/uploads\\\/2019\\\/06\\\/1.png\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#articleImage\"},\"datePublished\":\"2019-06-28T12:18:56+05:30\",\"dateModified\":\"2019-06-28T15:05:18+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#webpage\"},\"articleSection\":\"Android, Technology, Android, Android Components, Android Native, Native Components in React Native, react native\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#listItem\",\"name\":\"Add Custom Android Native View In React Native As a Component\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#listItem\",\"position\":3,\"name\":\"Add Custom Android Native View In React Native As a Component\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anil-yadav\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anil-yadav\\\/\",\"name\":\"Anil Kumar Yadav\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/45dc94e4-2386-4902-8688-bcb69af11f56_2367-Anil-Kumar-Yadav-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Anil Kumar Yadav\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/\",\"name\":\"Custom Android Native View In React Native | TO THE NEW Blog\",\"description\":\"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/custom-android-native-view-in-react-native-as-component\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anil-yadav\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/anil-yadav\\\/#author\"},\"datePublished\":\"2019-06-28T12:18:56+05:30\",\"dateModified\":\"2019-06-28T15:05:18+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Custom Android Native View In React Native | TO THE NEW Blog","description":"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.","canonical_url":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#article","name":"Custom Android Native View In React Native | TO THE NEW Blog","headline":"Add Custom Android Native View In React Native As a Component","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/anil-yadav\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"image":{"@type":"ImageObject","url":"\/blog\/wp-ttn-blog\/uploads\/2019\/06\/1.png","@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#articleImage"},"datePublished":"2019-06-28T12:18:56+05:30","dateModified":"2019-06-28T15:05:18+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#webpage"},"articleSection":"Android, Technology, Android, Android Components, Android Native, Native Components in React Native, react native"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.xyz\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#listItem","name":"Add Custom Android Native View In React Native As a Component"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#listItem","position":3,"name":"Add Custom Android Native View In React Native As a Component","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/anil-yadav\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/anil-yadav\/","name":"Anil Kumar Yadav","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/45dc94e4-2386-4902-8688-bcb69af11f56_2367-Anil-Kumar-Yadav-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Anil Kumar Yadav"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/","name":"Custom Android Native View In React Native | TO THE NEW Blog","description":"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/anil-yadav\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/anil-yadav\/#author"},"datePublished":"2019-06-28T12:18:56+05:30","dateModified":"2019-06-28T15:05:18+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Add Custom Android Native View In React Native As a Component","og:description":"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.","og:url":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Add Custom Android Native View In React Native As a Component","twitter:description":"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"53137","title":"Custom Android Native View In React Native | #site_title","description":"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.","keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"Add Custom Android Native View In React Native As a Component","og_description":"This blog will help you understand how to integrate an Android native view, or a custom view, in a React Native application as a component.","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 11:59:56","updated":"2024-02-29 08:16:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tAdd Custom Android Native View In React Native As a Component\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Technology","link":"https:\/\/2thenew.xyz\/blog\/category\/technology\/"},{"label":"Add Custom Android Native View In React Native As a Component","link":"https:\/\/2thenew.xyz\/blog\/custom-android-native-view-in-react-native-as-component\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/53137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/1219"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=53137"}],"version-history":[{"count":7,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/53137\/revisions"}],"predecessor-version":[{"id":53158,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/53137\/revisions\/53158"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=53137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=53137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=53137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}