4 ms·
Our Transition to React Native
- bryan_ka 6y agoHi! I'm the author of the post, happy to answer any questions you might have!
- randompwd 6y agoI was briefly on a project which used React Native ~3 years ago. The non-descrpit red error screen was a killer. Has the dev experience for RN improved much since then?
- bryan_ka 6y agoIt's gotten much better over the last three years! Like the other reply here said - go take a look at the recent LogBox updates there!
- EngVagabond 6y agoCheck out the new error screen (LogBox) in 0.63! https://reactnative.dev/blog/2020/07/06/version-0.63 https://reactnative.dev/blog/2020/07/06/version-0.63
- osamaqarem 6y agoHi Bryan. Loved the article! I've been doing React Native for about a year-plus now. One of the things I've struggled with is making Android feel performant. The first render for heavy screens can be noticeably slow. Do you have any practices that you stick to to ensure Android performs well? Thanks!
- bryan_ka 6y agoWe've got some SectionList and FlatList components in the app that can get pretty long (e.g. our Unit screen lists out every lesson and content-item in there, that's pretty big.) We use the initialNumToRender prop to help out with rendering long lists like that - dunno if that's one of your performance bits, but it was a big help to us!
- vivekweb2013 6y agoWhy moved to reactjs?
- ptagon 6y agoWhat do you think of the future of React Native?
- bryan_ka 6y agoIt's been a bit since I looked at the overall roadmap, but I've really enjoyed what I've seen and used so far! I've been enjoying Hooks lately, for example.
- faizmokhtar 6y agoWhat do you think about using React Native in web?
- bryan_ka 6y agoI've heard great things about it! Haven't used it myself yet. We've considered using it for our interactive-exercises code (because it's shared between web and mobile) but haven't made concrete plans yet to make that change. (For now, our interactive exercises are still an embedded webview wrapped in React Native "chrome".)
- enahum 6y agoWhat did you do to ensure network resilience?
- bryan_ka 6y agoA big feature for our app is that it needs to work in spotty network conditions - especially as we've expanded internationally, and as students are now studying from home where they often don't have WiFi. We have a redux store where we keep our data, and much of the "have you watched this video" or "have you completed this assignment" data gets persisted to disk, so if a network failure happens we can just try again when the user's device is back on! (Does that answer your question?)
- enahum 6y agoSo nothing like automatic retries/backoff or queue failed requests?
- dhalwani 6y agoGreat post. Wondering why you chose go over js/ts as your backend since it seemed like keeping a light footprint is key for you?
- dangoor 6y agoSorry I didn't see this earlier… I believe that Go has a lighter footprint (both in memory and CPU) than JavaScript.