<?xml version="1.0"?>
<oembed><version>1.0</version><provider_name>Tong Hin's Blog</provider_name><provider_url>https://www.tonghin.com.my/blog</provider_url><author_name>Mohammedi Khalil</author_name><author_url>https://www.tonghin.com.my/blog/author/khalil/</author_url><title>Check Box For React Native | Tong Hin's Blog</title><type>rich</type><width>600</width><height>338</height><html>&lt;blockquote class="wp-embedded-content" data-secret="nfUEQACly3"&gt;&lt;a href="https://www.tonghin.com.my/blog/2022/08/08/check-box-react-native/"&gt;Check Box For React Native&lt;/a&gt;&lt;/blockquote&gt;&lt;iframe sandbox="allow-scripts" security="restricted" src="https://www.tonghin.com.my/blog/2022/08/08/check-box-react-native/embed/#?secret=nfUEQACly3" width="600" height="338" title="&#x201C;Check Box For React Native&#x201D; &#x2014; Tong Hin's Blog" data-secret="nfUEQACly3" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-embedded-content"&gt;&lt;/iframe&gt;&lt;script&gt;
/*! This file is auto-generated */
!function(c,d){"use strict";var e=!1,o=!1;if(d.querySelector)if(c.addEventListener)e=!0;if(c.wp=c.wp||{},c.wp.receiveEmbedMessage);else if(c.wp.receiveEmbedMessage=function(e){var t=e.data;if(!t);else if(!(t.secret||t.message||t.value));else if(/[^a-zA-Z0-9]/.test(t.secret));else{for(var r,s,a,i=d.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=d.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),l=0;l&lt;n.length;l++)n[l].style.display="none";for(l=0;l&lt;i.length;l++)if(r=i[l],e.source!==r.contentWindow);else{if(r.removeAttribute("style"),"height"===t.message){if(1e3&lt;(s=parseInt(t.value,10)))s=1e3;else if(~~s&lt;200)s=200;r.height=s}if("link"===t.message)if(s=d.createElement("a"),a=d.createElement("a"),s.href=r.getAttribute("src"),a.href=t.value,!o.test(a.protocol));else if(a.host===s.host)if(d.activeElement===r)c.top.location.href=t.value}}},e)c.addEventListener("message",c.wp.receiveEmbedMessage,!1),d.addEventListener("DOMContentLoaded",t,!1),c.addEventListener("load",t,!1);function t(){if(o);else{o=!0;for(var e,t,r,s=-1!==navigator.appVersion.indexOf("MSIE 10"),a=!!navigator.userAgent.match(/Trident.*rv:11\./),i=d.querySelectorAll("iframe.wp-embedded-content"),n=0;n&lt;i.length;n++){if(!(r=(t=i[n]).getAttribute("data-secret")))r=Math.random().toString(36).substr(2,10),t.src+="#?secret="+r,t.setAttribute("data-secret",r);if(s||a)(e=t.cloneNode(!0)).removeAttribute("security"),t.parentNode.replaceChild(e,t);t.contentWindow.postMessage({message:"ready",secret:r},"*")}}}}(window,document);
&lt;/script&gt;
</html><description>I had made a new screen the week before. The user must choose the warehouse that he is currently in on the new screen, which appeared right after logging in. So&#xA0;I&#xA0;created&#xA0;a&#xA0;checkbox&#xA0;for&#xA0;react&#xA0;native&#xA0;paper&#xA0;where&#xA0;the&#xA0;status&#xA0;should&#xA0;have&#xA0;been&#xA0;checked&#xA0;or&#xA0;unchecked&#xA0;on&#xA0;that&#xA0;screen.&#xA0;So,&#xA0;when&#xA0;I&#xA0;had&#xA0;located&#xA0;the&#xA0;warehouse&#x2019;s&#xA0;data,&#xA0;I&#xA0;mapped&#xA0;a&#xA0;new&#xA0;feature&#xA0;to&#xA0;it&#xA0;called&#xA0;isChecked&#xA0;with type Boolean and&#xA0;set&#xA0;it&#xA0;to&#xA0;false. Next,&#xA0;I&#xA0;created&#xA0;a&#xA0;function&#xA0;called&#xA0;handle&#xA0;function&#xA0;that&#xA0;accepts&#xA0;an&#xA0;id&#xA0;parameter&#xA0;and&#xA0;has&#xA0;a&#xA0;condition&#xA0;that,&#xA0;if&#xA0;true,&#xA0;changes&#xA0;the&#xA0;value&#xA0;of&#xA0;isChecked&#xA0;to&#xA0;the&#xA0;opposite&#xA0;value.&#xA0;Thus,&#xA0;alter&#xA0;it&#xA0;from&#xA0;true&#xA0;to&#xA0;false&#xA0;if&#xA0;it&#xA0;was&#xA0;true,&#xA0;and&#xA0;vice&#xA0;versa&#xA0;if&#xA0;it&#xA0;was&#xA0;false. When&nbsp;I&nbsp;no&nbsp;longer&nbsp;needed&nbsp;to&nbsp;use&nbsp;that&nbsp;screen,&nbsp;I&nbsp;didn&#x2019;t&nbsp;want&nbsp;to&nbsp;keep&nbsp;it&nbsp;on&nbsp;the&nbsp;navigator&nbsp;and&nbsp;be&nbsp;able&nbsp;to&nbsp;find&nbsp;it&nbsp;by&nbsp;pressing&nbsp;the&nbsp;back&nbsp;button,&nbsp;so&nbsp;I&nbsp;destroyed&nbsp;the&nbsp;screen.&nbsp;They&nbsp;will&nbsp;only&nbsp;be&nbsp;able&nbsp;to&nbsp;call&nbsp;again&nbsp;through&nbsp;the&nbsp;button&nbsp;to&nbsp;change,&nbsp;and&nbsp;then&nbsp;I&nbsp;destroyed&nbsp;it&nbsp;once&nbsp;more.&nbsp;I&nbsp;made&nbsp;all&nbsp;of&nbsp;that&nbsp;in&nbsp;order&nbsp;to&nbsp;use&nbsp;multi-selection;&nbsp;if&nbsp;it&nbsp;were&nbsp;single&nbsp;selection&nbsp;only,&nbsp;it&nbsp;wouldn&#x2019;t&nbsp;be&nbsp;as&nbsp;complicated. I&#xA0;also&#xA0;work&#xA0;on&#xA0;the&#xA0;docker&#xA0;registry,&#xA0;but&#xA0;I&#xA0;was&#xA0;unable&#xA0;to&#xA0;complete&#xA0;the&#xA0;assignment&#xA0;that&#xA0;Mr.&#xA0;Peter&#xA0;assigned&#xA0;me&#xA0;because&#xA0;I&#xA0;was&#xA0;still&#xA0;struggling&#xA0;with&#xA0;the&#xA0;SSL.&#xA0;I&#xA0;also&#xA0;generated&#xA0;a&#xA0;SalesApi&#xA0;using&#xA0;a&#xA0;different&#xA0;generator,&#xA0;but&#xA0;I&#xA0;was&#xA0;unable&#xA0; to&#xA0;utilise&#xA0;it.&#xA0;I&#xA0;am&#xA0;still&#xA0;searching&#xA0;for&#xA0;examples&#xA0;of&#xA0;how&#xA0;to&#xA0;use&#xA0;that&#xA0;to&#xA0;resolve &#xA0;the&#xA0;problem&#xA0;with&#xA0;the&#xA0;format&#xA0;of&#xA0;the&#xA0;array&#xA0;when&#xA0;submitting&#xA0;the&#xA0;warehouses.</description></oembed>
