I’ve updated from 30 to 32. Just checked That issue also exist on 31. With sdk 30.0 I was able to point webview to load local assets saved with local filesystem expo class by setting the baseUrl param on webview. Now it seems impossible.
You get two webview instances with sdk 30 and only first with 31 (and 32).
I dont see any warnings with snack but unhandled promise rejection is thrown somewhere regarding attempt to access the filestorage location.
[Unhandled promise rejection: Error: Unable to open URL: file:///var/mobile/Containers/Data/Application/54924710-5DF9-4658-8F7C-50D8FA202FEE/Documents/ExponentExperienceData/@michalkrakow/wiadomoscipwc/]
- node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:146:41 in createErrorFromErrorData
- node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:95:55 in <unknown>
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:397:4 in __invokeCallback
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:127:28 in <unknown>
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:297:10 in __guard
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:126:17 in invokeCallbackAndReturnFlushedQueue
* [native code]:null in invokeCallbackAndReturnFlushedQueue
Since the commit’s message suggests the change is intentional, I’m not sure working around this like you did will be the right solution in the long run. Maybe the proper solution would be to inject a custom override of localstorage that would call back to RN’s JS and set the values in AsyncStorage (using Communicating between JS and Native on react-native-community/react-native-webview)?