Laundry Native — Mobile

Test Laundry Wangi's React Native app on a phone: navigation, deep links, storage, lists and APIs. 15 levels, right in the browser.

What the levels ask

  1. Ms. Nadia is building Wangi, the app of Laundry Kiloan Wangi, and every morning a villager tries it on the test phone. Mrs. Sari taps her receipt, #12. Fill in navigate in layar.js so the Nota screen opens and knows which receipt was tapped, and the back button takes her to the list again.
  2. The neighbourhood head opens receipt #13, then Lacak kurir. On the courier screen he taps Ke daftar, but yesterday the back button then took him to the courier again. Fill in the call on that button so he goes back to the list that is already there, and the back button after it closes the app.
  3. Mrs. Sari has two receipts, #12 and #15. The Nota berikutnya button on the Receipt screen opens the other one. She wants to compare them: from #15 the back button must take her to #12 first, then to the list. Pick the method that opens the next receipt.
  4. Wangi now has a Cucian tab (a stack of the list and the receipt) and an Akun tab. In the Akun tab Ms. Wulan taps Buka nota #14. She must end up on that receipt inside the Cucian tab, with the list under it so the back button takes her to the list. Fill in where navigate goes.
  5. Mrs. Yanti orders through Pesan cucian, Lanjut, then Kirim pesanan. Once it is sent she must see her new receipt, #21, with the list under it. The back button must not open the form or the confirmation again, so nobody orders twice. Fill in the call in kirim.
  6. Mrs. Sari gets a WhatsApp link, wangi://nota/12. The phone opens Wangi through it, and the linking config turns the address into a screen. Fill in the pattern for the Receipt screen in linking.js so Mrs. Sari sees her receipt #12 straight away.
  7. Mr. Tono opens the link wangi://nota/16 from WhatsApp. His receipt shows, but the back button closes the app at once. A link to a screen deep in an app should still put its parent screen under it. Fill in the empty line in the Cucian stack's config so going back from the receipt takes him to the list.
  8. Grandma Marni picks the delivery address Gang Kepel 7 in the app. The next morning she opens Wangi again, and her address must still be there. AsyncStorage keeps data on the phone even when the app is closed. Fill in the value simpan stores so that the address, an object, can be read back with JSON.parse.
  9. Mrs. Ijah fills her basket and closes the app, and when it opens again the basket is empty: the saving effect runs on the first render, while isi is still empty and getItem has not answered. Fill in the guard line in that effect so the basket survives, and can still be emptied once the washing is handed in.
  10. Mr. Dodi ticks the receipts he has checked. The list is a FlatList, and every row keeps its own tick. He ticks Ms. Wulan's receipt, then Mrs. Sari collects #12 and its row goes. The tick must stay on Ms. Wulan's receipt. Fill in keyExtractor.
  11. Bagas says the list of receipts stutters every time the courier's round above it changes: the phone records every row rendering again although nothing in it changed. Fill in the two holes in layar.js so the rows do not render again when only the courier's round changes, and a receipt still opens.
  12. The laundry's wifi drops for a moment: the server answers 503 for about the first two and a half seconds, just as Mr. Bayu opens Wangi. The app must try again by itself, waiting longer each time, without flooding the server, and show the list as soon as the server is back. Fill in the retry line in catch.

And more, 15 levels in all.