Skip to content

Commit

Permalink
[barcode-scanner] Add FYI link (expo#26049)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanjhughes authored Dec 20, 2023
1 parent 36b0814 commit 3e3923a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions packages/expo-barcode-scanner/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

### 💡 Others

- Add FYI link. ([#26049](https://github.com/expo/expo/pull/26049) by [@alanjhughes](https://github.com/alanjhughes))

## 12.9.0 — 2023-11-14

### 🛠 Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion packages/expo-barcode-scanner/build/BarCodeScanner.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/expo-barcode-scanner/build/BarCodeScanner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/expo-barcode-scanner/build/BarCodeScanner.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/expo-barcode-scanner/src/BarCodeScanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export type BarCodeScannerProps = ViewProps & {

/**
* @deprecated
* BarCodeScanner has been deprecated and will be removed in a future SDK version. Plesae use `expo-camera` instead.
* BarCodeScanner has been deprecated and will be removed in a future SDK version. Plesae use `expo-camera` instead. see [barcode-scanner-to-expo-camera](https://expo.fyi/barcode-scanner-to-expo-camera) for more details on how to migrate.
*/
export class BarCodeScanner extends React.Component<BarCodeScannerProps> {
lastEvents: { [key: string]: any } = {};
Expand All @@ -147,7 +147,7 @@ export class BarCodeScanner extends React.Component<BarCodeScannerProps> {
componentDidMount(): void {
if (!warnedAboutDeprecation) {
console.warn(
'BarCodeScanner has been deprecated and will be removed in a future SDK version. Please use `expo-camera` instead'
'BarCodeScanner has been deprecated and will be removed in a future SDK version. Please use `expo-camera` instead. See https://expo.fyi/barcode-scanner-to-expo-camera for more details on how to migrate'
);
warnedAboutDeprecation = true;
}
Expand Down

0 comments on commit 3e3923a

Please sign in to comment.