Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions _includes/sidelist-programming/programming-react-native.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@
<!-- <li lang="react-native"><a class="otherLinkColour" href="{{ site.dbr_react_native }}driver-license-user-guide.html" style="cursor:pointer;color:#3c3c3c">Driver License Guide</a></li> -->
</ul>
</li>
<!-- <li lang="react-native"><a style="cursor:pointer;color:#3c3c3c">Explore Features</a>
<li lang="react-native"><a style="cursor:pointer;color:#3c3c3c">Explore Features</a>
<ul lang="react-native">
<li lang="react-native"><a class="otherLinkColour" href="{{ site.dbr_react_native }}explore-features/ui-customization.html" style="cursor:pointer;color:#3c3c3c">UI Customization</a></li>
<li lang="react-native"><a class="otherLinkColour" href="{{ site.dbr_react_native }}explore-features/advanced-features.html" style="cursor:pointer;color:#3c3c3c">Advanced Features</a></li>
</ul>
</li> -->
</li>
<li lang="react-native"><a href="{{ site.dbr_react_native }}samples/index.html" class="otherLinkColour">Demo &amp; Samples</a></li>

<li lang="react-native"><a href="{{ site.dbr_react_native_api }}barcode-scanner/index.html" style="cursor:pointer;color:#3c3c3c" class="otherLinkColour">BarcodeScanner APIs</a>
Expand Down
57 changes: 57 additions & 0 deletions programming/react-native/explore-features/ui-customization.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
layout: default-layout
title: UI Customization (Foundational Edition) - Dynamsoft Barcode Reader Flutter Edition
description: The UI customization guide for the foundational edition of Dynamsoft Barcode Reader Flutter.
keywords: ui, customization, foundational, Flutter, barcode reader
needAutoGenerateSidebar: true
noTitleIndex: true
---

# UI Customization Guide (Foundational Edition)

One of the advantages of using the foundational edition of the Barcode Reader is that you can customize the UI however you see fit. In this guide we will walk through some of the ways in which you can customize the scanner UI using the Barcode Reader Foundational API.

## Specifying a Scan Region

Use the [`setScanRegion`]({{ site.dce_flutter_api }}camera-enhancer.html#setscanregion) method to limit the scan area:

```js
let scanRegion = {
top: 0.35,
bottom: 0.65,
left: 0.15,
right: 0.85,
measuredInPercentage: true
}
camera.setScanRegion(scanRegion);
```

The scan region is displayed with a mask by default. To hide it, set [`scanRegionMaskVisible`]({{ site.dce_flutter_api }}camera-view.html#scanregionmaskvisible) to `false`.

## Customizing the Camera View

Customizable UI elements on the CameraView include:

- `cameraToggleButton`: A button for switching between front and back facing cameras.
- `scanLaser`: A vertical laser that moves within the scan region.
- `scanRegionMask`: A mask covered outside the scan region.
- `torchButton`: A button for switching on and off the torch.

**Code Snippet**

```js
<SafeAreaView style={StyleSheet.absoluteFill}>
<CameraView
style={StyleSheet.absoluteFill}
ref={cameraView}
// Add a camera toggle button with default position and image.
cameraToggleButtonVisible={true}
// Display the scan laser.
scanLaserVisible={true}
// Scan region mask is displayed by default if you set a scan region.
scanRegionMaskVisible={true}
// Add a torch button with default position and image.
torchButtonVisible={true}
/>
</SafeAreaView>
```
1 change: 1 addition & 0 deletions programming/react-native/release-notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ breadcrumbText: Release Notes

# Dynamsoft Barcode Reader React Native SDK - Release Notes

- [11.2.5002 (01/22/2026)](react-native-11.md#1125002-01222026)
- [11.2.5000 (12/18/2025)](react-native-11.md#1125000-12182025)
- [11.2.3000 (12/04/2025)](react-native-11.md#1123000-12042025)
- [11.0.5200 (08/18/2025)](react-native-11.md#1105200-08182025)
Expand Down
6 changes: 6 additions & 0 deletions programming/react-native/release-notes/react-native-11.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ breadcrumbText: Release Notes

# Dynamsoft Barcode Reader React Native SDK - Release Notes

## 11.2.5002 (01/22/2026)

### Fixed

- Fixed a crash issue caused by lifecycle management code.

## 11.2.5000 (12/18/2025)

This release includes security maintenance updates to ensure continued protection of the product.
Expand Down