Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Jun 1, 2021
1 parent 7d79eb9 commit 44ec1d3
Show file tree
Hide file tree
Showing 6 changed files with 375 additions and 354 deletions.
12 changes: 8 additions & 4 deletions docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ const App = () => {
mediaType: 'photo',
quality: 0.7,
},
(response) => {
if (response.base64) {
({ assets }) => {
const response = assets?.[0]

if (response?.base64) {
const imageMessage: MessageType.Image = {
authorId: userId,
height: response.height,
Expand Down Expand Up @@ -268,8 +270,10 @@ const App = () => {
mediaType: 'photo',
quality: 0.7,
},
(response) => {
if (response.base64) {
({ assets }) => {
const response = assets?.[0]

if (response?.base64) {
const imageMessage: MessageType.Image = {
authorId: userId,
height: response.height,
Expand Down
6 changes: 3 additions & 3 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"react-native-document-picker": "^5.0.4",
"react-native-file-viewer": "^2.1.4",
"react-native-get-random-values": "^1.7.0",
"react-native-image-picker": "^3.8.0",
"react-native-image-picker": "^4.0.3",
"react-native-safe-area-context": "^3.2.0",
"uuid": "^8.3.2"
},
Expand All @@ -28,7 +28,7 @@
"@babel/runtime": "^7.14.0",
"@react-native-community/eslint-config": "^2.0.0",
"@types/jest": "^26.0.23",
"@types/react-native": "^0.64.5",
"@types/react-native": "^0.64.8",
"@types/react-test-renderer": "^17.0.1",
"@types/uuid": "^8.3.0",
"babel-jest": "^26.6.3",
Expand All @@ -38,7 +38,7 @@
"jest": "^26.6.3",
"metro-react-native-babel-preset": "^0.66.0",
"react-test-renderer": "^17.0.2",
"typescript": "^4.2.4"
"typescript": "^4.3.2"
},
"resolutions": {
"@types/react": "^17"
Expand Down
6 changes: 4 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ const App = () => {
mediaType: 'photo',
quality: 0.7,
},
(response) => {
if (response.base64) {
({ assets }) => {
const response = assets?.[0]

if (response?.base64) {
const imageMessage: MessageType.Image = {
authorId: userId,
height: response.height,
Expand Down
Loading

0 comments on commit 44ec1d3

Please sign in to comment.