Now we can set the config on each screen with just a call to useStatusBar and it’ll always be correct when the screen becomes focused

Musafir Express
6 min readDec 15, 2020

--

Considering the sheer number of people who lost their lives to the Spanish Flu, it’s amazing that it had almost seeped out of the public consciousness until we faced a similar reality ourselves.
As the pandemic started to spread across the world in the early parts of the year, I sought out a book detailing a similar virus that stalked the planet one hundred years ago, the Spanish Flu.
I grabbed a Twitter handle and tweeted my intention. The next day, I had a DM from a designer in Buenos Aires named Rebecca Brooker who would become my cofounder. She had been developing a similar idea, so we decided to make this thing together. It was almost a year before we met in person.
The book delves into various personal stories and describes how the virus made its way around the world after the end of the First World War. Even in an age where mass travel wasn’t commonplace, the virus managed to find its way to all corners of the globe.
Luckily, the StatusBar module from React Native also exports imperative means of setting this config. So what if we could write a hook that makes these imperative calls when a screen focuses, so that we always have the right config? This is a hook I wrote for a project that does just so:ML kit is a part of Firebase that allows mobile app developers to quickly import Google’s machine learning expertise from the firebase console. No matter whether you are a beginner or a skilled Flutter app developer, you can quickly implement the ML functionality to Android and iOS applications by adding the few lines of code. While there is no need of having in-depth knowledge of neural networks or model optimization to get started with ML functionality, if you are an experienced ML developer, then it is worth leveraging the APIs in the mobile app.While using this method of integrating ML and AL to Flutter App, make sure your app is using Firebase or either you have a custom model that will be hosted on another server setup. Also, this method is suitable for models which expect regular updates but not so frequent.
Three Linux shells (ZSH, Bash, fish) within the Gnome Terminal. I’ve heavily customized the ZSH shell; Bash and fish show the default. You can see that fish has an in-line autosuggestion feature that the two other shells lack. Image by Martin Thoma.
The shell stores the history of entered commands, defines how you set environment variables, how you switch the current directory. Examples for shells on Linux are ZSH, Bash, fish. On Windows, the typical shells are PowerShell. You can see which shell you are running by executing echo $0 . On Linux, it’s most likely Bash.
Now if the user changes their color preference in your app’s settings, or, for example, the sun sets and your phone’s color scheme changes, this StatusBar will be aware of it and match the rest of the app. Here obviously we’re not taking into account the other methods in the StatusBar API, which would be a welcome enhancement.
Now we can set the config on each screen with just a call to useStatusBar and it’ll always be correct when the screen becomes focused. This hook-based alternative helps keep your markup clear of rendering StatusBar in every screen.
I’d been trying to connect with other queer people in design, to learn more about queer design history, and not getting very far. And so I had a Field of Dreams moment. I decided I was going to build something out in the world and bring the queer people to me.
Pale Rider is a fascinating look at life in the midst of a pandemic that killed somewhere between 50 to 100 million over three years from 1918 to 1921. Looking back today with three vaccines on the verge of being approved, it’s incredible to think how different things were back then and how far we’ve come.

https://www.thehomeplow.com/smc/video-s-v-c1.html
https://www.thehomeplow.com/smc/video-s-v-c2.html
https://www.thehomeplow.com/smc/video-s-v-c3.html
https://www.thehomeplow.com/smc/video-s-v-c4.html
https://www.thehomeplow.com/smc/video-s-v-c5.html
https://www.thehomeplow.com/smc/video-s-v-c6.html
https://www.thehomeplow.com/smc/video-s-v-c7.html
https://www.thehomeplow.com/rtc/video-c-v-f4.html
https://www.thehomeplow.com/rtc/video-c-v-f3.html
https://www.thehomeplow.com/rtc/video-c-v-f2.html
https://www.thehomeplow.com/rtc/video-c-v-f1.html
https://www.thehomeplow.com/rtc/video-c-v-e10.html
https://www.thehomeplow.com/rtc/video-c-v-e9.html
https://www.thehomeplow.com/rtc/video-c-v-e8.html
https://www.thehomeplow.com/rtc/video-c-v-e7.html
https://www.thehomeplow.com/rtc/video-c-v-e6.html
https://www.thehomeplow.com/rtc/video-c-v-e5.html
https://www.thehomeplow.com/rtc/video-c-v-e4.html
https://www.thehomeplow.com/rtc/video-c-v-e3.html
https://www.thehomeplow.com/rtc/video-c-v-e2.html
https://www.thehomeplow.com/rtc/video-c-v-e1.html
https://www.thehomeplow.com/rtc/video-h-v-e1.html
https://www.thehomeplow.com/rtc/video-h-v-e2.html
https://www.thehomeplow.com/rtc/video-h-v-e3.html
https://www.thehomeplow.com/rtc/video-h-v-e4.html
https://www.thehomeplow.com/rtc/video-h-v-e5.html
https://www.thehomeplow.com/rtc/video-h-v-e6.html
https://www.thehomeplow.com/rtc/video-h-v-f1.html
https://www.thehomeplow.com/rtc/video-h-v-f2.html
https://www.thehomeplow.com/rtc/video-h-v-f3.html
https://www.thehomeplow.com/rtc/video-h-v-f4.html
https://www.thehomeplow.com/rtc/video-h-v-g1.html
https://www.thehomeplow.com/rtc/video-h-v-g2.html
https://www.thehomeplow.com/rtc/video-h-v-g3.html
https://www.thehomeplow.com/rtc/video-h-v-g4.html
https://www.thehomeplow.com/rtc/video-a-v-c2.html
https://www.thehomeplow.com/rtc/video-a-v-c3.html
https://www.thehomeplow.com/rtc/video-a-v-c4.html
https://www.thehomeplow.com/rtc/video-a-v-c5.htm
https://www.thehomeplow.com/rtc/video-a-v-c6.htm
https://www.thehomeplow.com/rtc/video-a-v-c7.htm
https://www.thehomeplow.com/rtc/video-a-v-c8.html
https://www.thehomeplow.com/rtc/video-a-v-c9.html
https://www.thehomeplow.com/rtc/video-a-v-d1.html
https://www.thehomeplow.com/rtc/video-a-v-d2.html
https://www.thehomeplow.com/rtc/video-a-v-d3.html
https://www.thehomeplow.com/rtc/video-a-v-d4.html
https://www.thehomeplow.com/rtc/video-a-v-d5.html
https://www.thehomeplow.com/rtc/video-a-v-d6.html
https://www.thehomeplow.com/rtc/video-a-v-d7.html
https://www.thehomeplow.com/rtc/video-a-v-d8.html
https://www.thehomeplow.com/smc/video-s-v-d1.html
https://www.thehomeplow.com/smc/video-s-v-d2.html
https://www.thehomeplow.com/smc/video-s-v-d3.html
https://www.thehomeplow.com/smc/video-s-v-d4.html
https://www.thehomeplow.com/smc/video-s-v-d5.html
https://www.thehomeplow.com/smc/video-s-v-d6.html
https://www.thehomeplow.com/rtc/video-c-v-g4.html
https://www.thehomeplow.com/rtc/video-c-v-g3.html
https://www.thehomeplow.com/rtc/video-c-v-g2.html
https://www.thehomeplow.com/rtc/video-c-v-g1.html
https://www.thehomeplow.com/rtc/video-d-v-r1.html
https://www.thehomeplow.com/rtc/video-d-v-r2.html
https://www.thehomeplow.com/rtc/video-d-v-r3.html
https://www.thehomeplow.com/rtc/video-d-v-r4.html
https://www.thehomeplow.com/rtc/video-d-v-r5.html
https://www.thehomeplow.com/rtc/video-d-v-r6.html
https://www.thehomeplow.com/rtc/video-d-v-r7.html
https://www.thehomeplow.com/rtc/video-d-v-r8.html
https://www.thehomeplow.com/rtc/video-d-v-r9.html
https://www.thehomeplow.com/rtc/video-d-v-t1.html
https://www.thehomeplow.com/rtc/video-d-v-t2.html
https://www.thehomeplow.com/rtc/video-d-v-t3.html
https://www.thehomeplow.com/rtc/video-d-v-t4.html
https://www.thehomeplow.com/rtc/video-d-v-t5.html
https://www.thehomeplow.com/rtc/video-d-v-t6.html
https://www.thehomeplow.com/rtc/video-d-v-t7.html
https://www.thehomeplow.com/rtc/video-d-v-t8.html
https://www.thehomeplow.com/rtc/video-d-v-t9.html
https://www.thehomeplow.com/rtc/video-m-v-m1.html
https://www.thehomeplow.com/rtc/video-m-v-m2.html
https://www.thehomeplow.com/rtc/video-m-v-m3.html
https://www.thehomeplow.com/rtc/video-m-v-m4.html
https://www.thehomeplow.com/rtc/video-m-v-m5.html
https://www.thehomeplow.com/rtc/video-m-v-n1.html
https://www.thehomeplow.com/rtc/video-m-v-n2.html
https://www.thehomeplow.com/rtc/video-m-v-n3.html
https://www.thehomeplow.com/rtc/video-m-v-n4.html
https://www.thehomeplow.com/rtc/video-m-v-n5.html
https://www.thehomeplow.com/rtc/video-v-v-a1.html
https://www.thehomeplow.com/rtc/video-v-v-a2.html
https://www.thehomeplow.com/rtc/video-v-v-a3.html
https://www.thehomeplow.com/rtc/video-v-v-c1.html
https://www.thehomeplow.com/rtc/video-v-v-c2.html
https://www.thehomeplow.com/rtc/video-v-v-e1.html
https://www.thehomeplow.com/rtc/video-v-v-e2.html
https://www.thehomeplow.com/rtc/video-v-v-e3.html
https://www.thehomeplow.com/rtc/video-v-v-j1.html
https://www.thehomeplow.com/rtc/video-v-v-j2.html
https://www.thehomeplow.com/rtc/video-v-v-j3.html
https://www.thehomeplow.com/rtc/video-v-v-l1.html
https://www.thehomeplow.com/rtc/video-v-v-l2.html
https://www.thehomeplow.com/rtc/video-v-v-l3.html
https://www.thehomeplow.com/rtc/video-v-v-m1.html
https://www.thehomeplow.com/rtc/video-v-v-m2.html
https://www.thehomeplow.com/rtc/video-v-v-m3.html
https://www.thehomeplow.com/rtc/video-v-v-n1.html
https://www.thehomeplow.com/rtc/video-v-v-n2.html
https://www.thehomeplow.com/rtc/video-v-v-n3.html
https://www.thehomeplow.com/rtc/video-v-v-n4.html
https://www.thehomeplow.com/rtc/video-v-v-r1.html
https://www.thehomeplow.com/rtc/video-v-v-r2.html
https://www.thehomeplow.com/rtc/video-v-v-r3.html
https://www.thehomeplow.com/rtc/video-v-v-s1.html
https://www.thehomeplow.com/rtc/video-v-v-s2.html
https://www.thehomeplow.com/rtc/video-v-v-s3.html
https://www.thehomeplow.com/rtc/video-v-v-s4.html
https://www.thehomeplow.com/rtc/video-v-v-t1.html
https://www.thehomeplow.com/rtc/video-v-v-t2.html
https://www.thehomeplow.com/rtc/video-v-v-t3.html
https://www.thehomeplow.com/rtc/video-v-v-x1.html
https://www.thehomeplow.com/rtc/video-v-v-x2.html
https://www.thehomeplow.com/rtc/video-v-v-x3.html
https://www.thehomeplow.com/rtc/video-s-v-d7.html
https://www.thehomeplow.com/rtc/video-s-v-d8.html
https://www.thehomeplow.com/rtc/video-h-v-h1.html
https://www.thehomeplow.com/rtc/video-h-v-h2.html
https://www.thehomeplow.com/rtc/video-h-v-h3.html
https://www.thehomeplow.com/rtc/video-h-v-h4.html
https://www.thehomeplow.com/rtc/video-c-v-s2.html
https://www.thehomeplow.com/rtc/video-c-v-s1.html
https://www.thehomeplow.com/rtc/video-m-v-o1.html
https://www.thehomeplow.com/rtc/video-m-v-o2.html
https://www.thehomeplow.com/rtc/video-m-v-o3.html
https://www.thehomeplow.com/rtc/video-m-v-o4.html

When writing a React Native app using React Navigation, we often run into a particular problem. In short, the device’s status bar is controlled by rendering a StatusBar component. But if we have an app with multiple screens, where more than one screen is rendered at once, rather than being lazy-loaded, this approach may fail. This is because rendering this StatusBar updates the config under the hood, but only reflects the state when it was last rendered. What this means is if your app has screens A and B, even if you have A visible, if B rendered after A, the status bar will have the config from screen B, which is wrong for screen A.
It is one of the other popular methods of incorporating machine learning in apps, mostly when you are working with servers and web interfaces and expecting your model to update very frequently.
While using this method, developers wrap the model in API services and host it using web-based servers. Major developers reply on these popular platforms including AWS Lambda, Google App Engine, Heroku or Virtual Machine as it supports running the model and serving as a web-based service.

--

--

Musafir Express
Musafir Express

No responses yet