r/reactnative • • Oct 27 '26

Help Website to app

Hello,

I have a website that I would like to also have it has an app on android and Apple. The catch is I need the app to work offline and have documents downloaded offline, modifications to be made, saved and shipped once back online.

Claude was suggesting to have the website in the app but it won’t perform properly I think.

But I think it’s better to have a native app since there is all the offline accessibility features that need to be integrated. I am trying to create a full native app but it’s pretty much ai copying the whole website. Also I would like to have to modify all from one location.

(Code is currently python, xml, JavaScript, html/ces, SQL for database)

Is this feasible and what should I look out for? Should I look in to flutter instead?

EDIT: It is pretty much an ERP system and the features needed offline are: checklists, time punches, plans and documents. For all of them we also need to be able to edit and resubmit offline, where it saves on the phone and pushes it once back online.

Thank you!

0 Upvotes

13 comments sorted by

View all comments

2

u/anthony-ball Oct 28 '26

For an ERP with time punches and checklists, the part that will bite you is the sync layer, not the shell. Store every edit locally as a queued mutation with a client-generated ID and the device timestamp, so replaying it after a bad connection can't double-create a punch. Time punches should be append-only events rather than edits, and for checklists and documents pick a conflict rule up front (last write wins per field is usually enough, otherwise flag it for the user). In React Native I'd use SQLite for the local store and keep the queue and API contract shared with the web side so you only write the business rules once.

1

u/Automatic-Fan-3993 29d ago

+1 on the queue. two things that bit me in this kind of setup:

device timestamps as the tiebreaker. someone's phone clock is off and that device just keeps winning conflicts. for punches that ends up in payroll. a hybrid logical clock fixes the ordering, but a phone running fast still wins concurrent edits, so reject timestamps way ahead of server time, and for punches keep the server receive time next to the device time.

deletes. phone A deletes a checklist item, phone B edits it offline, item comes back on the next sync. you need tombstones, and they have to stick around until every device has synced. plus some rule for the device that never comes back.

if each checklist only lives on one device, skip all this.