Make a 1,500 stamp album run smooth on a cheap phone: FlatList, memo, pictures, storage. 14 levels, played right in the browser with nothing to install.
What the levels ask
Album Prangko holds the 1,500 stamps of the Sukamaju Philatelic Society, issued from 1950 to 1999. On Ms. Esti's phone the list shows at once. On Grandma Marni's phone, a two-million-rupiah phone with 2 GB of RAM, the screen stays white before the first row shows. Fill the list hole in App.js so Grandma sees her stamps quickly and can scroll all the way to 1999.
Each row now shows the stamp's scan in a 64 x 64 point box. The club scans its stamps at 2400 dpi: 2400 x 3000 pixels. The picture server shrinks a scan when given ?w= with the width wanted. On the phone of Mrs. Ratna, the teacher (a 2x screen), the album stutters, and its pictures take hundreds of megabytes. Fill the uri hole in Baris.js so the stamps are sharp on Mrs. Ratna's screen and their memory is small.
Mr. Harun collects transport stamps. He flings his list far down, comes back to the top, then closes the album. That night Ms. Wulan scans Pesawat Terbang 1950 again, the old scan was blurred, and the catalogue marks it as version 2. The next day Mr. Harun opens the album again. Fill the uri hole in Baris.js so Mr. Harun's phone does not download the same scans again and again, but gets the new scan the next day.
Mr. Bayu was born in 1985 and collects that year's stamps. Above the list are year buttons. The 1985 button calls scrollToIndex to the first stamp of 1985, stamp number 1,051. Each row is 80 tall, and between two rows sits a Garis 2 tall. Fill the hole in App.js so Mr. Bayu's tap stops right at the first stamp of 1985.
Members can now tick the stamps they own, and the header counts them. Bagas ticks Bunga Melati 1950, then flings his list far down. On his phone one tick makes the screen stutter, and the fling shows white. Fill the hole in Baris.js: how the Baris component is made.
Mrs. Yanti ticks Badak Jawa 1950, then flings her list. Baris already uses memo, yet her phone still stutters. Fill the onTekan hole in App.js.
Ms. Wulan from the post office brings two new 2026 issues. The + 2 button puts both at the top of the list. Fill the keyExtractor hole in App.js so both new stamps show and the old rows are not drawn again.
The neighbourhood head taps 1985, ticks Kereta Api 1985, flings the list far down twice, then taps 1985 again. On his phone the tick is gone, and the number in the header never went up. Fill the hole at the start of Baris in Baris.js: where punya comes from.
Grandma Marni opens the album. The list on her screen holds about eight rows 80 tall. initialNumToRender sets how many rows the first render makes. Fill its hole so Grandma's first screen is full at once without making rows nobody can see yet.
Bagas hunts for his 1954 stamps by flinging the list hard. Ms. Esti tunes FlatList's window: windowSize (how many screen heights are kept ready, above and below together) and maxToRenderPerBatch (how many rows per batch). Fill its hole so Bagas's fling does not go white and his phone does not hold hundreds of rows at once.
The album keeps the ticked stamps on the phone. Grandma Marni has 16 stamps ticked, stored two ways: one key per stamp (punya:p0001) and one whole list under the key punya. This morning Grandma opens the album and her ticks show up late. Fill the hole at the start of Album in App.js so her ticks are already on the first screen, with as few storage calls as possible.
Mr. Karim opens the album at the pier, with one bar of 3G. The catalogue now comes from the club's server page by page: ?halaman=1&ukuran=…, and the next page loads through onEndReached. Mr. Karim opens the album, then flings the list down eight times. Fill the UKURAN and onEndReachedThreshold holes so the first stamps show quickly and Mr. Karim never waits at an empty end of the list.