Skip to content
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

Merged
merged 16 commits into from
Aug 4, 2020
Merged

Support expo 38 #111

merged 16 commits into from
Aug 4, 2020

Conversation

Ethella
Copy link
Member

@Ethella Ethella commented Jun 28, 2020

  • Add buffer and process to dependencies

📦 Pull Request

Support react-native-webview": "9.4.0" which has been used in Expo 38 SDK

🗜 Versioning

(Check one!)

  • Patch: Bug Fix?
  • Minor: New Feature?
  • Major: Breaking Change?

✅ Fixed Issues

🚨 Test instructions

Run it on Simulator and real Devices

⚠️ Update CHANGELOG.md

  • I have updated the Upcoming Changes section of CHANGELOG.md with context related to this Pull Request.

@Ethella Ethella requested a review from smithki June 28, 2020 20:18
@Ethella Ethella self-assigned this Jun 28, 2020
smithki
smithki previously approved these changes Jun 29, 2020
Copy link
Contributor

@smithki smithki left a 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!

packages/react-native/src/index.ts Outdated Show resolved Hide resolved
@smithki
Copy link
Contributor

smithki commented Jul 1, 2020

Looks like some type errors failed the tests as well.

@@ -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') };
Copy link
Contributor

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
@Ethella
Copy link
Member Author

Ethella commented Jul 7, 2020

Punting this PR from merging, as the Expo team has just shared with their implementation. It may involve some changes afterward.

@smithki
Copy link
Contributor

smithki commented Jul 18, 2020

Looks like some tests are failing due to the addition of a process.removeListener call in the RN environment.

smithki
smithki previously approved these changes Jul 31, 2020
@DanielRamosAcosta
Copy link

DanielRamosAcosta commented Aug 3, 2020

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.

@smithki
Copy link
Contributor

smithki commented Aug 3, 2020

cc @Ethella, would you take a look at the failing RN tests. Seems to be missing process.addListener and process.removeListener.

I'd like to give open-source contributors the first shot at fixing these broken tests, actually :)

@smithki
Copy link
Contributor

smithki commented Aug 3, 2020

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.

@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!

smithki
smithki previously approved these changes Aug 4, 2020
@Ethella
Copy link
Member Author

Ethella commented Aug 4, 2020

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.

Hi @DanielRamosAcosta, if you encounter an issue that the webview doesn't show. You could give 36 or 37 a try.

@DanielRamosAcosta
Copy link

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.

Hi @DanielRamosAcosta, if you encounter an issue that the webview doesn't show. You could try 36 or 37 a try.

Ok, I'm going to try SDK 37 to see if I can reproduce

@Ethella
Copy link
Member Author

Ethella commented Aug 4, 2020

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.

Hi @DanielRamosAcosta, if you encounter an issue that the webview doesn't show. You could try 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.

@DanielRamosAcosta
Copy link

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.

@Ethella Ethella requested a review from smithki August 4, 2020 18:22
@Ethella Ethella merged commit e511668 into master Aug 4, 2020
@Ethella Ethella deleted the Support-Expo-38 branch August 4, 2020 19:52
@DanielRamosAcosta
Copy link

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! 👏

@smithki
Copy link
Contributor

smithki commented Oct 22, 2020

@smithki smithki added the released This issue/pull request has been released. label Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Expo SDK 38
3 participants