@boneframework/native-components 1.0.18 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{Image.js → Image.tsx} +1 -5
- package/package.json +2 -1
- /package/components/{ActivityIndicator.js → ActivityIndicator.tsx} +0 -0
- /package/components/{Animation.js → Animation.tsx} +0 -0
- /package/components/{Button.js → Button.tsx} +0 -0
- /package/components/{Card.js → Card.tsx} +0 -0
- /package/components/{CategoryPickerItem.js → CategoryPickerItem.tsx} +0 -0
- /package/components/{DateTimePicker.js → DateTimePicker.tsx} +0 -0
- /package/components/{Icon.js → Icon.tsx} +0 -0
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import React, {useContext, useEffect, useState} from 'react';
|
|
2
2
|
import {Image as RNImage, StyleSheet, View} from "react-native";
|
|
3
3
|
|
|
4
|
-
import storage from '../auth/storage';
|
|
5
|
-
import * as Notifications from "expo-notifications";
|
|
6
4
|
import useAuth from "../hooks/useAuth";
|
|
7
|
-
import authStorage from "../auth/storage";
|
|
8
5
|
import settings from '../../../../config/api';
|
|
9
|
-
import AuthContext from "../auth/context";
|
|
10
6
|
|
|
11
7
|
function Image({style, uri, onPress, handleError, source}) {
|
|
12
|
-
const {user
|
|
8
|
+
const {user} = useAuth();
|
|
13
9
|
|
|
14
10
|
const tryAgain = async error => {
|
|
15
11
|
if (handleError !== null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boneframework/native-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "Expo Components for Bone Framework",
|
|
5
5
|
"main": "src/Bone.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"expo-auth-session": "^5.5.2",
|
|
37
37
|
"expo-camera": "^15.0.13",
|
|
38
38
|
"expo-device": "^6.0.2",
|
|
39
|
+
"expo-image": "^1.12.13",
|
|
39
40
|
"expo-image-picker": "^15.0.7",
|
|
40
41
|
"expo-notifications": "^0.28.11",
|
|
41
42
|
"expo-secure-store": "^13.0.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|