From 14e62cf178233292a3019d533cc8ffc8868ad612 Mon Sep 17 00:00:00 2001 From: Gennady Vasilev Date: Tue, 14 Feb 2023 14:32:58 +0300 Subject: [PATCH] updating example of setting http headers --- README.md | 3 +++ example/src/ImageExamples.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 19d9b53..3808c7d 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,9 @@ export default function App() { // short naming (-1 default) 'other' ]} + // headers={{ + // Authorization: `${token_type} ${access_token}` + // }} onReady={() => setReady(true)} > {ready && ( diff --git a/example/src/ImageExamples.tsx b/example/src/ImageExamples.tsx index d752250..9175f79 100644 --- a/example/src/ImageExamples.tsx +++ b/example/src/ImageExamples.tsx @@ -12,7 +12,7 @@ export default function ImageExamples() { uri='https://picsum.photos/3840/2160.jpg?random=first' manager='images' // headers={{ - // 'Authorization': `${token_type} ${access_token}` + // Authorization: `${token_type} ${access_token}` // }} toggleButtons autoLoad={false}