https://github.com/kimjeonghun91/rn-auto-height-webview
https://github.com/kimjeonghun91/rn-auto-height-webview
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kimjeonghun91/rn-auto-height-webview
- Owner: KimJeonghun91
- Created: 2024-02-22T02:29:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-27T02:37:23.000Z (over 1 year ago)
- Last Synced: 2025-03-11T22:34:02.305Z (3 months ago)
- Language: TypeScript
- Size: 85.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 설치
```bash
npm i rn-auto-height-webview react-native-webview
```## 사용법
```tsx
import React from 'react';
import { SafeAreaView, ScrollView } from 'react-native';
import AutoHeightWebview from './dist';const App = () => {
const tempImg = 'https://blogfiles.pstatic.net/MjAxNzAyMTZfMjA0/MDAxNDg3MjQ2NDgxNjEz.T4LCn-IbinkR3ko47DeBvPL1j73nyOZGCjOa2ou27r4g.6bkIwX56bUoIwca-0LA3Y77pSLpadPbXDinEbyvEKuQg.JPEG.suuuk3/%EC%9D%B8%ED%8F%AC%EA%B7%B8%EB%9E%98%ED%94%BD_%EB%B9%84%EA%B5%90_%EB%85%B8%ED%8A%B8%EB%B6%81.jpg';const renderHtml = `
img { display: block; max-width: 100%; }
![]()
![]()
`;return (
);
};export default App;
```