Skip to content

Commit

Permalink
Merge pull request #216 from Peersyst/rnc/fix/qr-scanner-status-bar
Browse files Browse the repository at this point in the history
Rnc/fix/qr scanner status bar
  • Loading branch information
AgustinMJ authored Feb 9, 2024
2 parents 0f7b987 + ec749dd commit c7697c4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Versions

# 3.4.4

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

# 3.3.11

[Backdrop] fix: fix `avoidKeyboard` on Android.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@peersyst/react-native-components",
"author": "Peersyst",
"version": "3.4.3",
"version": "3.4.4",
"license": "MIT",
"main": "./src/index.tsx",
"engines": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +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 { StatusBar } from "../../layout/StatusBar";
import { useQrScannerStyles } from "./hooks";
import { StatusBar } from "../../layout/StatusBar";

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

0 comments on commit c7697c4

Please sign in to comment.