shabados / mobile

Android and iOS app for searching, navigating, and presenting the Shabad OS database.
MIT License
11 stars 11 forks source link

feat: add Reader mode line view to Gurbani Screen #284

Closed Harjot1Singh closed 2 years ago

Harjot1Singh commented 2 years ago

Summary

Adds reader mode line view to Gurbani Screen. To do this, a lot of refactoring occurred and ultimately there are two types of Lines now - DefaultLines and ReaderLines which group and render the lines separately. To make this reasonable, the shared styling/components that back the Lines for each have been split out into different components.

As long as we have no data which cannot be split into sections, this should stay fairly performant, but let's keep an eye on it.

Cheeky side note - I switched off Suspense in most react-query scenarios.

Additionally, all the bani IDs were not mapping correctly to names - this has been fixed, I am unsure how this happened.

Closes #236