-
expo
An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
That's why we usually use someone else's wheels instead of inventing our own. And this is when the third-party libraries and modules are at our service. So I looked for some React Native libraries on GitHub and found only this package.
I worked on the app where I needed to track when a user locks the screen. I hadn't used AppState in react native applications before, so I was hoping that background meant "the screen is locked". So I checked the basic flow of these states on my iPhone using Expo. I put a console.log in the render method and started looking at the states in the terminal, turning the screen on and off and switching between the apps.