just good old fashioned open source + encrypting and persisting in local storage
for apple: application storage is sandboxed and no other app can read that persistence.
this mixed with encryption (and decrypted at app launch), is honestly really solid
for android i am not sure how app containers work, but for react native AsyncStorage supports encryption/decryption