Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 1.01 KB

File metadata and controls

13 lines (8 loc) · 1.01 KB

File System & Storage Isolation

Platform: iOS

This example demonstrates TurboModule substitutions — transparently replacing native module implementations inside a sandbox with scoped, per-origin alternatives. The app uses a split-screen layout where the host and sandbox run the same UI, but the sandbox can swap react-native-fs (iOS only), react-native-file-access, and @react-native-async-storage/async-storage for sandboxed implementations that jail file paths and scope storage per origin.

Note: react-native-fs (v2) relies on the legacy NativeModules bridge and does not support TurboModules / New Architecture. On Android NativeModules.RNFSManager is null so RNFS is disabled there. On iOS it still works thanks to RN's bridge interop layer. See itinance/react-native-fs#1221.

Screenshot