SRJPE / rst-pilot-app-client

Rotary Screw Trap Data Collection application
0 stars 0 forks source link

Navigation refactor #326

Closed bpintel closed 2 months ago

bpintel commented 3 months ago

Completes #297

Reformats main form navigation so we no longer push the next screen to the stack. The next screen is instead replaced and the number of routes that we juggle in our form stack navigator can no longer grow out of control. This greatly reduces the number of views running at one time. These tests run hermes for the debugger, but performance is better running jsc.

Going through a simple form in dev before refactoring. (9 routes, 4k+ Views)

Image Image

Going through a simple form after refactoring. (1 routes, 400+ Views)

Image Image

This performance increase is substantial and should be implemented in other parts of the Application when possible. Specifically, the Monitoring program flow would benefit from these changes.