@boneframework/native-components 1.0.2 → 1.0.5
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 +4 -0
- package/Screens.ts +4 -0
- package/components/ActivityIndicator.js +48 -0
- package/components/Animation.js +21 -0
- package/components/ApiInterceptor.js +104 -0
- package/components/Button.js +40 -0
- package/components/Card.js +56 -0
- package/components/CategoryPickerItem.js +31 -0
- package/components/DateTimePicker.js +12 -0
- package/components/Icon.js +28 -0
- package/components/Image.js +61 -0
- package/components/ImageInput.tsx +97 -0
- package/components/ImageInputList.tsx +34 -0
- package/components/ListItemDeleteAction.tsx +30 -0
- package/components/ListItemFlipswitch.tsx +60 -0
- package/components/ListItemSeparator.tsx +23 -0
- package/components/ListItemSwipable.tsx +64 -0
- package/components/OfflineNotice.tsx +36 -0
- package/components/Picker.tsx +87 -0
- package/components/PickerItem.tsx +20 -0
- package/components/PickerItemComponent.tsx +14 -0
- package/components/RoundIconButton.tsx +36 -0
- package/components/Screen.tsx +26 -0
- package/components/Text.tsx +15 -0
- package/components/TextInput.tsx +39 -0
- package/components/forms/ErrorMessage.js +20 -0
- package/components/forms/Form.js +21 -0
- package/components/forms/FormDateTimePicker.js +31 -0
- package/components/forms/FormField.js +26 -0
- package/components/forms/FormImagePicker.js +30 -0
- package/components/forms/FormPicker.js +30 -0
- package/components/forms/SubmitButton.js +14 -0
- package/components/forms/index.js +7 -0
- package/hooks/useApi.js +20 -0
- package/package.json +4 -2
- package/screens/RegisterScreen.tsx +87 -0
- package/screens/WelcomeScreen.tsx +50 -0
- package/src/Screens.ts +0 -1
- /package/{src/Bone.ts → Bone.ts} +0 -0
- /package/{src/Components.ts → Components.ts} +0 -0
- /package/{src/Contexts.ts → Contexts.ts} +0 -0
- /package/{src/Hooks.ts → Hooks.ts} +0 -0
- /package/{src/Utilities.ts → Utilities.ts} +0 -0
- /package/{src/api → api}/client.js +0 -0
- /package/{src/api → api}/expoPushTokens.js +0 -0
- /package/{src/api → api}/notifications.js +0 -0
- /package/{src/api → api}/ping.js +0 -0
- /package/{src/api → api}/users.js +0 -0
- /package/{src/components → components}/SessionProvider.tsx +0 -0
- /package/{src/contexts → contexts}/auth.js +0 -0
- /package/{src/hooks → hooks}/useAuth.js +0 -0
- /package/{src/utilities → utilities}/authStorage.js +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {Image, ImageBackground, StyleSheet, Text, View} from "react-native";
|
|
3
|
+
import {exchangeCodeAsync, makeRedirectUri, useAuthRequest} from "expo-auth-session";
|
|
4
|
+
|
|
5
|
+
import Button from '@/components/Button'
|
|
6
|
+
import colors from '@/config/colors'
|
|
7
|
+
|
|
8
|
+
function WelcomeScreen({loginOnPress = () => {}, registerOnPress = () => {}}) {
|
|
9
|
+
return (
|
|
10
|
+
<ImageBackground blurRadius={10} style={styles.background} source={require('@/assets/background.png')} >
|
|
11
|
+
<View style={styles.logoContainer}>
|
|
12
|
+
<Image style={styles.logo} source={require('@/assets/logo.png')} />
|
|
13
|
+
<Text style={styles.tagline}>BONE FRAMEWORK</Text>
|
|
14
|
+
</View>
|
|
15
|
+
<View style={styles.buttonContainer}>
|
|
16
|
+
<Button title="login" color="primary" onPress={loginOnPress} ></Button>
|
|
17
|
+
<Button title="register" color="secondary" onPress={registerOnPress}></Button>
|
|
18
|
+
</View>
|
|
19
|
+
</ImageBackground>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
const styles = StyleSheet.create({
|
|
23
|
+
background: {
|
|
24
|
+
flex: 1,
|
|
25
|
+
justifyContent: 'flex-end',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
},
|
|
28
|
+
logo: {
|
|
29
|
+
width: 150,
|
|
30
|
+
height: 105
|
|
31
|
+
},
|
|
32
|
+
logoContainer: {
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
top: 70,
|
|
35
|
+
alignItems: "center"
|
|
36
|
+
},
|
|
37
|
+
buttonContainer: {
|
|
38
|
+
width: "100%",
|
|
39
|
+
padding: 20
|
|
40
|
+
},
|
|
41
|
+
tagline: {
|
|
42
|
+
fontSize: 50,
|
|
43
|
+
fontWeight: 'bold',
|
|
44
|
+
paddingTop: 10,
|
|
45
|
+
color: colors.white,
|
|
46
|
+
textAlign: 'center'
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export default WelcomeScreen;
|
package/src/Screens.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default {}
|
/package/{src/Bone.ts → Bone.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{src/api → api}/ping.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|