Skip to content

Commit 68e88a9

Browse files
author
Prashant.patil
committed
expo type error
1 parent 1033e6a commit 68e88a9

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
"@rollup/plugin-commonjs": "^28.0.2",
2727
"@rollup/plugin-node-resolve": "^16.0.0",
2828
"@rollup/plugin-typescript": "^12.1.2",
29-
"@types/react": "^18.3.18",
30-
"@types/react-native": "^0.72.8",
31-
"react": "^18.3.1",
32-
"react-native": "^0.77.0",
33-
"react-native-webview": "^13.13.2",
3429
"rollup": "^4.32.0",
3530
"rollup-plugin-dts": "^6.1.1",
3631
"typescript": "^5.7.3"

src/componentFactory.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,6 @@ export const componentFactory = <T extends typeof TSEmbed, V extends ViewConfig,
7171
});
7272
}, [props]);
7373

74-
return renderedWebView;
74+
return renderedWebView || <View></View>;
7575
}
7676
);

src/tsEmbed.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class TSEmbed<T extends ViewConfig = ViewConfig> {
9191

9292
}
9393

94-
public render() {
94+
public render(): JSX.Element {
9595
return (
9696
<WebView
9797
ref={this.webViewRef}

0 commit comments

Comments
 (0)