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

rn-webview 백그라운드 전환 후 무응답 화면 해결 #144

Open
luciancah opened this issue Apr 10, 2024 · 1 comment
Open

rn-webview 백그라운드 전환 후 무응답 화면 해결 #144

luciancah opened this issue Apr 10, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@luciancah
Copy link
Member

luciancah commented Apr 10, 2024

이슈

  • 앱 백그라운드 들어간 후 10분 이상 경과 (모바일 상황따라 다름) 하면 하얀화면 됨
  • 탭바 웹으로 사용중이라 제어불가

원인

@luciancah luciancah added the bug Something isn't working label Apr 10, 2024
@luciancah luciancah self-assigned this Apr 10, 2024
@luciancah
Copy link
Member Author

import React, { useRef } from 'react'
import { WebView } from 'react-native-webview'

const App = () => {
    const webViewRef = useRef()

    return (
        <WebView
            source={{ uri: 'https://www.google.com/' }}
            onContentProcessDidTerminate={() => webViewRef.current.reload()}
            ref={webViewRef}
        />
    )
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant