Skip to content

Commit d98b113

Browse files
committed
Add tests for preact
1 parent ca37006 commit d98b113

File tree

5 files changed

+46
-0
lines changed

5 files changed

+46
-0
lines changed

fixtures/Component-preact.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'preact';
2+
3+
export default () => {
4+
return (
5+
<div style={{background: 'red', width: '100vw', height: '100vh'}}>hoge</div>
6+
);
7+
};
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from "preact";
2+
import { webViewRender } from "react-native-react-bridge/lib/web/preact";
3+
import Comp from "./Component-preact";
4+
import './example.css'
5+
6+
const App = () => {
7+
return <Comp />;
8+
};
9+
10+
export default webViewRender(App);

0 commit comments

Comments
 (0)