Skip to content

SafeAreaView deprecated #255

@alexandre-malet

Description

@alexandre-malet

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-qrcode-svg@6.3.20 for the project I'm working on.

It's in the exemple project but it needs to be updated anyway so here's the improvement for SafeAreaView.

diff --git a/node_modules/react-native-qrcode-svg/Example/src/App.tsx b/node_modules/react-native-qrcode-svg/Example/src/App.tsx
index 1cdd7a0..9b9073b 100644
--- a/node_modules/react-native-qrcode-svg/Example/src/App.tsx
+++ b/node_modules/react-native-qrcode-svg/Example/src/App.tsx
@@ -1,5 +1,6 @@
 import React from 'react';
-import {SafeAreaView, ScrollView, Text} from 'react-native';
+import {ScrollView, Text} from 'react-native';
+import {SafeAreaView} from 'react-native-safe-area-context';
 import SVG from './assets/ruby.svg';
 import Description from './components/Description';
 import QRCode from 'react-native-qrcode-svg';

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions