Bug 1: Seems that React Native does not support the dynamic import syntax and fails to register the component in time.
Bug 2: Property 'TransformStream' doesn't exist on React Native at runtime running the synchronous code. This would also occur if the async version (bug 1) worked
Expected behavior
Bug 1: I expect the docs to explain how to get this working with additional metro config or a complete example with Metro and RN CLI. I expect the docs to accurately describe how to get msw to work in React Native.
Bug 2: I expect this to work on React Native like the docs suggest.
Prerequisites
Environment check
msw
versionNode.js version
v18.15.0
Reproduction repository
https://github.com/lgibso34/react-native-msw
Reproduction steps
Similar to #2344 but not Jest related.
main
branchTransformStream error
1.
git checkout bug/sync
Current behavior
Bug 1: Seems that React Native does not support the dynamic import syntax and fails to register the component in time.
Bug 2: Property 'TransformStream' doesn't exist on React Native at runtime running the synchronous code. This would also occur if the async version (bug 1) worked
Expected behavior
Bug 1: I expect the docs to explain how to get this working with additional metro config or a complete example with Metro and RN CLI. I expect the docs to accurately describe how to get msw to work in React Native.
Bug 2: I expect this to work on React Native like the docs suggest.
Async error (main)
Sync error (bug/sync)