peng37How much does it cost to build an appLet me show you how much it costs to build an app.Sep 9, 2022Sep 9, 2022
peng37How to use nodejs libs in react native?React native is a different javascript running environment from browser and nodejs. If a library works in the browser or nodejs, it doesn’t…Sep 5, 2022Sep 5, 2022
peng37Internal and external storage in react nativeI have been working with react native at work for 3 years, but I haven’t touched the file system.Sep 1, 20221Sep 1, 20221
peng37Frontend: How to retry request with rxjsNo matter how good it your API, some requests can still fail. And when it fails, sometimes we want to retry it. This can be achieved with…May 7, 2019May 7, 2019
peng37Frontend: how to implement “pull down to refresh” on mobile browserOn mobile browser, you can pull down the page, let it go, and the whole page will be refreshed.Apr 28, 2019Apr 28, 2019
peng37Frontend: How to make sure spinner always rotate full circlesAdd a spinner button, and here are the requirements: 1. When it’s clicked, it should start rotate; 2. And some asynchronous tasks start; 3…Apr 25, 2019Apr 25, 2019
peng37Angular: how to do formsAngular’s reactive form is really good. Every form field is bound to a FormControl, and you get the field state or change the state…Apr 11, 2019Apr 11, 2019
peng37Angular: Unit Test: Property based testingProperty based testing has a lot of benefits. So let’s also do that in Angular. I use testcheck@1.0.0-rc.2Apr 9, 2019Apr 9, 2019
peng37Angular: Unit Test: trigger events in testsWhen I test Angular components, I am mainly testing the component template logic. If some content should be shown, then I will test if…Apr 8, 20192Apr 8, 20192
peng37Angular: Unit Test: mocksWhen talking about testing, there are a lot of words: Dummy, Stub, Spy, Fake, Mock etc. I am just fine to call everything “Mock”.Apr 8, 2019Apr 8, 2019