forked from react-native-webview/react-native-webview
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: configure Metro to consume source directly (react-native-webvi…
…ew#2395) This will allow developers to modify the TypeScript code and see changes without having to run `tsc --watch` separately.
- Loading branch information
Showing
11 changed files
with
46 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { requireNativeComponent } from "react-native"; | ||
import type { NativeWebViewAndroid } from "./WebViewTypes"; | ||
|
||
const RNCWebView: typeof NativeWebViewAndroid = requireNativeComponent( | ||
'RNCWebView', | ||
); | ||
|
||
export default RNCWebView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { requireNativeComponent } from "react-native"; | ||
import type { NativeWebViewIOS } from "./WebViewTypes"; | ||
|
||
const RNCWebView: typeof NativeWebViewIOS = requireNativeComponent( | ||
'RNCWebView', | ||
); | ||
|
||
export default RNCWebView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { requireNativeComponent } from "react-native"; | ||
import type { NativeWebViewMacOS } from "./WebViewTypes"; | ||
|
||
const RNCWebView: typeof NativeWebViewMacOS = requireNativeComponent( | ||
'RNCWebView', | ||
); | ||
|
||
export default RNCWebView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { requireNativeComponent } from "react-native"; | ||
import type { NativeWebViewWindows } from "./WebViewTypes"; | ||
|
||
const RCTWebView: typeof NativeWebViewWindows = requireNativeComponent( | ||
'RCTWebView', | ||
); | ||
|
||
export default RCTWebView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import WebView from './WebView'; | ||
|
||
export { WebView }; | ||
export default WebView; |