4 ms·
That's a fair point about the opportunity to build some performance-tuning muscle but I imagine to do that would require solid knowledge of both React and Andro
by silkodyssey 10y ago
That's a fair point about the opportunity to build some performance-tuning muscle but I imagine to do that would require solid knowledge of both React and Android. Where do I start? I am more inclined to go towards the native Android side first.
Aa a follow up, I just did a test with a native Android app doing the same thing: getting an image through an Intent. With the native Android app, the same image that was crashing the React Native app doesn't cause any problems.
- Gudin 10y agoWhat does that have to do with performance? You shouldn't serialize hi-rez bitmap and pack it in Intent. Activities/Intents should at least force you to be careful and not to keep all data around in your memory, but only pass data you really need.
- htormey 10y agoHave you read this: https://facebook.github.io/react-native/docs/performance.html#moving-a-view-on-the-screen-scrolling-translating-rotating-drops-ui-thread-fps https://facebook.github.io/react-native/docs/performance.htm... It might help with some of the performance issues you encountered. Even if you decide to abandon React Native and just do Native Android or iOS, you are going to have to deal with performance issues at some point in your career.
- BoorishBears 10y agoAre you sending an image bitmap in the actual Intent? I'm surprised you're not having it break when sent to Android's IPC mechanism which has fairly low size limits. I would use a Content Provider to share the image instead.