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 React Native #37

Merged
merged 21 commits into from
Apr 22, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
544e411
Update build system to support a React Native bundle
smithki Apr 10, 2020
cecf18f
Add initial implementation for React Native (requires e2e testing)
smithki Apr 11, 2020
40d5e2c
Fix CJS builds and rename 'WebViewController' to 'ReactNativeWebViewC…
smithki Apr 11, 2020
60c926f
Remove unnecessary return statement
smithki Apr 11, 2020
063b820
Fix React dependency regex in Webpack config
smithki Apr 11, 2020
9e7e68d
Update CircleCI config
smithki Apr 11, 2020
ac50c28
Re-organize '/core' tests to reflect additional view controllers
smithki Apr 11, 2020
93e2657
Organizational comments
smithki Apr 11, 2020
d2e2021
Remove superfluous comment
smithki Apr 11, 2020
73e6c53
Add first draft CHANGELOG entry for React Native feature
smithki Apr 11, 2020
e6a1957
Update 'isViewReady' condition
smithki Apr 11, 2020
768dc7b
Package 'react-native-webview' and 'whatwg-url' in the RN bundle
smithki Apr 11, 2020
1abad60
Add .vscode to git ignores
smithki Apr 11, 2020
337e6c3
Add /dist to eslint ignores
smithki Apr 11, 2020
c62a6a6
Clean up Webpack config
smithki Apr 11, 2020
520e510
Externalize 'react-native-webview' & fix event listener bug in 'Paylo…
smithki Apr 14, 2020
857e503
Merge branch 'master' into react_native
smithki Apr 17, 2020
a690a39
Merge branch 'master' into react_native
smithki Apr 21, 2020
5385d97
Merge branch 'master' into react_native
smithki Apr 21, 2020
849d1b0
React native unit tests (#49)
smithki Apr 22, 2020
62cedc0
Add some testing cleanups
smithki Apr 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Externalize 'react-native-webview' & fix event listener bug in 'Paylo…
…adTransport'
  • Loading branch information
smithki committed Apr 15, 2020
commit 520e510a8157b10b6c190ca48a523ab25657f8a5
2 changes: 1 addition & 1 deletion src/core/payload-transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class PayloadTransport {
* relevant iframe context.
*/
constructor(private readonly endpoint: string, private readonly encodedQueryParams: string) {
this.initMessageListener();
if (!IS_REACT_NATIVE) this.initMessageListener();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion webpack/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function configBase(name: 'cjs' | 'cdn' | 'react-native') {
if (isReactNative) {
// In React Native environments, we expect the developer to provide their
// own React dependencies, so we mark them as "externals".
config.externals(/^(react|react-native)$/);
config.externals(/^(react|react-native|react-native-webview)$/);
} else {
// In browser environments, we must ensure that React dependencies are not
// included or `required` anywhere, so we force these modules to be replaced
Expand Down