Skip to content

Commit

Permalink
Fix a scroll issue in StandaloneWebViewScreen.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
MasoudFallahpourbaee committed Oct 13, 2023
1 parent 76ae8ef commit 5d7d5f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions TestApp/src/standalonewebview/StandaloneWebViewScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
} from 'react-native-klarna-inapp-sdk';
import Button from '../common/ui/view/Button';

// TODO pass the required props
export default function StandaloneWebViewScreen() {
const klarnaStandaloneWebViewRef = useRef<KlarnaStandaloneWebView>(null);
const [url, setUrl] = useState('');
Expand Down Expand Up @@ -91,7 +90,10 @@ export default function StandaloneWebViewScreen() {
};

return (
<View>
<View
style={{
flex: 1,
}}>
<View
/* eslint-disable-next-line react-native/no-inline-styles */
style={{
Expand All @@ -112,8 +114,7 @@ export default function StandaloneWebViewScreen() {
ref={klarnaStandaloneWebViewRef}
/* eslint-disable-next-line react-native/no-inline-styles */
style={{
width: '100%',
height: '100%',
flex: 1,
}}
returnUrl={'returnUrl://'}
onBeforeLoad={(event: KlarnaWebViewNavigationEvent) => {
Expand Down

0 comments on commit 5d7d5f7

Please sign in to comment.