From 0ad327b1406c4dd299104540c3b90516e86e9e4e Mon Sep 17 00:00:00 2001 From: Douglas Silva Date: Fri, 10 Jun 2022 02:12:31 -0300 Subject: [PATCH] Update QRCode component typing Changed from `PureComponent` to `React.FC` to reflect the usage of functional component --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index f3700cd..3511f08 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ import * as React from "react"; import { Image, ImageSourcePropType } from "react-native"; -declare class QRCode extends React.PureComponent {} +declare const QRCode: React.FC; export interface QRCodeProps { /* what the qr code stands for */