-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support expo 38 #111
Support expo 38 #111
Conversation
* Add buffer and process to dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a nit comment, otherwise approved!
Looks like some type errors failed the tests as well. |
packages/react-native/src/index.ts
Outdated
@@ -12,7 +11,7 @@ import { SDKBaseReactNative } from './react-native-sdk-base'; | |||
|
|||
// We expect `global.process` to be a Node Process, | |||
// so we replace it here. | |||
global.process = processPolyfill || {}; | |||
if (global.process) global.process = { ...global.process, ...require('process') }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably want an else
case here
# Conflicts: # packages/react-native/package.json
# Conflicts: # packages/react-native/package.json # yarn.lock
* spread polyfill into global.process
Punting this PR from merging, as the Expo team has just shared with their implementation. It may involve some changes afterward. |
# Conflicts: # packages/react-native/CHANGELOG.md
Looks like some tests are failing due to the addition of a |
Hello @smithki! Is there anything I could help? Fixing the tests? I'm starting a new project with Expo 38 but the webview doens't even show up. |
I'd like to give open-source contributors the first shot at fixing these broken tests, actually :) |
@DanielRamosAcosta You're absolutely welcome to pull the branch and investigate the broken tests, it's only affecting React Native, but if you're able to get them in a working condition, I'd be happy to merge the PR! |
Hi @DanielRamosAcosta, if you encounter an issue that the webview doesn't show. You could give 36 or 37 a try. |
Ok, I'm going to try SDK 37 to see if I can reproduce |
Feel free to file an issue in this repo if you can reproduce it. |
I've been trying to downgrade to SDK 37 but there are lot of things that depends on 38 in my current app (fonts, libraries...) I'll give it another try with an isolated app this evening. |
Didn't have time in the end to test with SDK 37, but the new version works with SDK 38 as a charm! Great work! 👏 |
🚀 PR was released in |
📦 Pull Request
Support
react-native-webview": "9.4.0"
which has been used in Expo 38 SDK🗜 Versioning
(Check one!)
✅ Fixed Issues
🚨 Test instructions
Run it on Simulator and real Devices
CHANGELOG.md
Upcoming Changes
section ofCHANGELOG.md
with context related to this Pull Request.