App in Release build is minified and compiled. Crash reports won’t include the original file info as Debug build. However, most programming languages have some mechanisms to solve the problem. For example, dSYM on iOS and React Native uses Javascript Source Map which is a JSON file that contains information between the compiled file and the original files. Therefore, we can use it to find where cause crashes easier.
The above image is a crash report of a react native app on New Relic which is not really readable. However, it contains some useful information such as
This article shows you how to use deeplink and push notification in react native and also combine them. Then when users tap the notification, the app can navigate to the specific screen. In order to show you more details, this article won’t use any other packages for deeplink and push notification. The source code of the example is here: https://github.com/wadehuang36/RnDpExample.
The example project is very simple. It just has a bottom-tab with three components using react-navigation.
Create a new project by
npx react-native init RnDpExample
Add React-Navigation and Url-Parse by
yarn add url-parse @react-navigation/native @react-navigation/bottom-tabs react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
…
Have you even hate your Javascript projects have a complex folder structure and you have to write import something from '../../../../forever'
the long ugly related path in the projects. This article shows you how to solve that with module alias in React and React Native.
Using module alias in React Native is pretty easy. Actually, you already have one. The name
in package.json
in the project root is a module alias.
For example, when we create a new React Native project and the name of the project is MyRnApp
, like this command.
npx react-native init MyRnApp
Then we can write import name…
How to use Vagrant to quickly create Kubernetes clusters with CRI-O runtime.
I have used Docker and Docker Swarm for years. Recently, I started learning Kubernetes to see how good it is and why people like it. In the beginning, I used Docker Desktop and MiniKube to get a hand on. However, the two methods are just a single node cluster that I felt not more Kubernetes enough. I started to create VMs to build and try a more complicated Kubernetes environment and since docker might be too fat in the Kubernetes environment, so I chose CRI-O for the runtime…
I have used AWS ECR with docker for years, A thing annoying me is I have to login every 24 hours to pull or push images since the access token expires in 24 hours. The good thing is we can use amazon-ecr-credential-helper to help us log in automatically. However, it is still not very helpful enough with multiple AWS Accounts, then I created a way to make it easier.
In case you haven’t used amazon-ecr-credential-helper before, I show you how to install it first.
NOTE: The download links of the pre-built execution files can be found on https://github.com/awslabs/amazon-ecr-credential-helper/releases. I…
Expert at .Net, Nodejs, Android, React and React Native