@boneframework/native-components 1.0.62 → 1.0.64
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/README.md +1 -13
- package/components/Animation.d.ts +6 -0
- package/package.json +4 -3
- package/screens/MapScreen.d.ts +6 -0
- package/screens/RegisterScreen.tsx +3 -3
package/README.md
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
# @boneframework/native-components
|
|
2
2
|
React Native expo components for BoneFramework
|
|
3
|
-
## project level files referred to in code
|
|
4
|
-
```
|
|
5
|
-
config/settings
|
|
6
|
-
config/cache
|
|
7
|
-
assets/background.png
|
|
8
|
-
assets/logo.png
|
|
9
|
-
assets/animations/loader.json
|
|
10
|
-
```
|
|
11
|
-
## install these at root level:
|
|
12
|
-
```
|
|
13
|
-
expo-auth-session
|
|
14
|
-
```
|
|
15
|
-
|
|
16
3
|
|
|
4
|
+
See @boneframework/bone-native for the Expo app
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boneframework/native-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.64",
|
|
4
4
|
"description": "Expo React Native Components for Bone Framework",
|
|
5
5
|
"main": "src/Bone.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"expo-linear-gradient": "^15.0.8",
|
|
44
44
|
"expo-location": "^19.0.8",
|
|
45
45
|
"expo-maps": "^0.12.10",
|
|
46
|
-
"expo-notifications": "^0.
|
|
47
|
-
"expo-router": "^6.0.
|
|
46
|
+
"expo-notifications": "^55.0.2",
|
|
47
|
+
"expo-router": "^6.0.22",
|
|
48
48
|
"expo-secure-store": "^15.0.8",
|
|
49
49
|
"formik": "^2.4.9",
|
|
50
50
|
"jwt-decode": "^4.0.0",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"lottie-react-native": "^7.3.4",
|
|
53
53
|
"pigeon-maps": "^0.22.1",
|
|
54
54
|
"react": "19.1.0",
|
|
55
|
+
"react-native": "^0.83.1",
|
|
55
56
|
"react-native-gesture-handler": "^2.29.1",
|
|
56
57
|
"react-native-progress": "^5.0.1",
|
|
57
58
|
"toggle-switch-react-native": "^3.3.0",
|
|
@@ -9,7 +9,7 @@ import useApi from "../hooks/useApi";
|
|
|
9
9
|
import usersApi from '../api/users';
|
|
10
10
|
import {ErrorMessage, FormField, Form, SubmitButton} from '../components/forms'
|
|
11
11
|
import Icon from "../components/Icon";
|
|
12
|
-
import useColors from '
|
|
12
|
+
import useColors from '../hooks/useColors';
|
|
13
13
|
|
|
14
14
|
const validationSchema = Yup.object().shape({
|
|
15
15
|
email: Yup.string().required().email().label('Email'),
|
|
@@ -17,7 +17,7 @@ const validationSchema = Yup.object().shape({
|
|
|
17
17
|
|
|
18
18
|
function RegisterScreen({postRegisterUrl, backgroundSource = null, logoSource = null}) {
|
|
19
19
|
const registerApi = useApi(usersApi.register);
|
|
20
|
-
const [error, setError] = useState();
|
|
20
|
+
const [error, setError] = useState<string|null>();
|
|
21
21
|
const onClose = () => router.back();
|
|
22
22
|
const colors = useColors();
|
|
23
23
|
|
|
@@ -27,7 +27,7 @@ function RegisterScreen({postRegisterUrl, backgroundSource = null, logoSource =
|
|
|
27
27
|
|
|
28
28
|
if (!result.ok) {
|
|
29
29
|
if (result.data) {
|
|
30
|
-
setError(result.data.
|
|
30
|
+
setError(result.data.reason_phrase);
|
|
31
31
|
} else {
|
|
32
32
|
setError('An unexpected error occured');
|
|
33
33
|
console.error(result);
|