Skip to content

Commit

Permalink
refactor(rnc): add status bar again and fix the hidden prop
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiParraCrespo committed Feb 9, 2024
1 parent 1f53af9 commit ec749dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# 3.4.4

[QrScanner] fix: remove `StatusBar` to fix app moving up and down in android.
[QrScanner] fix: fix `StatusBar` moving the app up and down when opening the qr scanner on android.

# 3.3.11

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { useEffect, useState } from "react";
import { BackButton, ChildrenWrapper, IdleQrScanner, QrScannerRoot } from "./QrScanner.styles";
import { useMergeDefaultProps } from "@peersyst/react-components-core";
import { BarCodeScanner } from "expo-barcode-scanner";
import { StyleSheet } from "react-native";
import { Platform, StyleSheet } from "react-native";
import { Backdrop } from "../../feedback/Backdrop";
import { CrossIcon } from "../../assets/icons";
import { useQrScannerStyles } from "./hooks";
import { StatusBar } from "../../layout/StatusBar";

const QrScanner = (rawProps: QrScannerProps): JSX.Element => {
const props = useMergeDefaultProps("QrScanner", rawProps);
Expand Down Expand Up @@ -57,6 +58,7 @@ const QrScanner = (rawProps: QrScannerProps): JSX.Element => {
) : (
<IdleQrScanner />
)}
<StatusBar hidden={Platform.OS === "ios"} translucent appearance="dark" />
</>
);
}}
Expand Down

0 comments on commit ec749dd

Please sign in to comment.