Skip to content

React Native: Property 'Document' doesn't exist #2359

Answered by kettanaito
rodperottoni asked this question in Q&A
Discussion options

You must be logged in to vote

I will never understand why project just opt-in into using seemingly incompatible export conditions by default. Since Metro prioritizes browser, you get the browser build of @mswjs/interceptors, which includes XHR interception as it should.

This makes me wonder: how did anyone else ever got MSW to work with React Native + Expo

We have been looking for a champion to bring the React Native integration into a good shape. None has showed up as of now. Since not many issues have been reported about this, I deem React Native support as a non-priority task. I don't develop in React Native so it's hard for me to have a proper grasp on the workflows and project specifics there.

Solution

The solu…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@rodperottoni
Comment options

@watadarkstar
Comment options

@rodperottoni
Comment options

@watadarkstar
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kettanaito
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants