diff --git a/TestApp/src/standalonewebview/StandaloneWebViewScreen.tsx b/TestApp/src/standalonewebview/StandaloneWebViewScreen.tsx index 9eca2da9..7ce255d5 100644 --- a/TestApp/src/standalonewebview/StandaloneWebViewScreen.tsx +++ b/TestApp/src/standalonewebview/StandaloneWebViewScreen.tsx @@ -1,10 +1,10 @@ -import {Keyboard, TextInput, View} from 'react-native'; +import {Keyboard, Text, TextInput, View} from 'react-native'; import styles from '../common/ui/Styles'; import React, {useRef, useState} from 'react'; import { KlarnaStandaloneWebView, - KlarnaWebViewKlarnaMessageEvent, KlarnaWebViewError, + KlarnaWebViewKlarnaMessageEvent, KlarnaWebViewNavigationEvent, KlarnaWebViewProgressEvent, KlarnaWebViewRenderProcessGoneEvent, @@ -112,32 +112,51 @@ export default function StandaloneWebViewScreen() { {renderGoBackButton()} {renderGoForwardButton()} - { - onEvent('onLoadStart', JSON.stringify(event)); - }} - onLoadEnd={(event: KlarnaWebViewNavigationEvent) => { - onEvent('onLoadEnd', JSON.stringify(event)); - }} - onError={(event: KlarnaWebViewError) => { - onEvent('onError', JSON.stringify(event)); - }} - onLoadProgress={(event: KlarnaWebViewProgressEvent) => { - onEvent('onLoadProgress', JSON.stringify(event)); - }} - onKlarnaMessage={(event: KlarnaWebViewKlarnaMessageEvent) => { - onEvent('onKlarnaMessage', JSON.stringify(event)); - }} - onRenderProcessGone={(event: KlarnaWebViewRenderProcessGoneEvent) => { - onEvent('onRenderProcessGone', JSON.stringify(event)); - }} - /> + + + On top of this blue area there is a StandaloneWebView with transparent + background! + + { + onEvent('onLoadStart', JSON.stringify(event)); + }} + onLoadEnd={(event: KlarnaWebViewNavigationEvent) => { + onEvent('onLoadEnd', JSON.stringify(event)); + }} + onError={(event: KlarnaWebViewError) => { + onEvent('onError', JSON.stringify(event)); + }} + onLoadProgress={(event: KlarnaWebViewProgressEvent) => { + onEvent('onLoadProgress', JSON.stringify(event)); + }} + onKlarnaMessage={(event: KlarnaWebViewKlarnaMessageEvent) => { + onEvent('onKlarnaMessage', JSON.stringify(event)); + }} + onRenderProcessGone={(event: KlarnaWebViewRenderProcessGoneEvent) => { + onEvent('onRenderProcessGone', JSON.stringify(event)); + }} + /> + ); }