@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.
Files changed (52) hide show
  1. package/README.md +4 -0
  2. package/Screens.ts +4 -0
  3. package/components/ActivityIndicator.js +48 -0
  4. package/components/Animation.js +21 -0
  5. package/components/ApiInterceptor.js +104 -0
  6. package/components/Button.js +40 -0
  7. package/components/Card.js +56 -0
  8. package/components/CategoryPickerItem.js +31 -0
  9. package/components/DateTimePicker.js +12 -0
  10. package/components/Icon.js +28 -0
  11. package/components/Image.js +61 -0
  12. package/components/ImageInput.tsx +97 -0
  13. package/components/ImageInputList.tsx +34 -0
  14. package/components/ListItemDeleteAction.tsx +30 -0
  15. package/components/ListItemFlipswitch.tsx +60 -0
  16. package/components/ListItemSeparator.tsx +23 -0
  17. package/components/ListItemSwipable.tsx +64 -0
  18. package/components/OfflineNotice.tsx +36 -0
  19. package/components/Picker.tsx +87 -0
  20. package/components/PickerItem.tsx +20 -0
  21. package/components/PickerItemComponent.tsx +14 -0
  22. package/components/RoundIconButton.tsx +36 -0
  23. package/components/Screen.tsx +26 -0
  24. package/components/Text.tsx +15 -0
  25. package/components/TextInput.tsx +39 -0
  26. package/components/forms/ErrorMessage.js +20 -0
  27. package/components/forms/Form.js +21 -0
  28. package/components/forms/FormDateTimePicker.js +31 -0
  29. package/components/forms/FormField.js +26 -0
  30. package/components/forms/FormImagePicker.js +30 -0
  31. package/components/forms/FormPicker.js +30 -0
  32. package/components/forms/SubmitButton.js +14 -0
  33. package/components/forms/index.js +7 -0
  34. package/hooks/useApi.js +20 -0
  35. package/package.json +4 -2
  36. package/screens/RegisterScreen.tsx +87 -0
  37. package/screens/WelcomeScreen.tsx +50 -0
  38. package/src/Screens.ts +0 -1
  39. /package/{src/Bone.ts → Bone.ts} +0 -0
  40. /package/{src/Components.ts → Components.ts} +0 -0
  41. /package/{src/Contexts.ts → Contexts.ts} +0 -0
  42. /package/{src/Hooks.ts → Hooks.ts} +0 -0
  43. /package/{src/Utilities.ts → Utilities.ts} +0 -0
  44. /package/{src/api → api}/client.js +0 -0
  45. /package/{src/api → api}/expoPushTokens.js +0 -0
  46. /package/{src/api → api}/notifications.js +0 -0
  47. /package/{src/api → api}/ping.js +0 -0
  48. /package/{src/api → api}/users.js +0 -0
  49. /package/{src/components → components}/SessionProvider.tsx +0 -0
  50. /package/{src/contexts → contexts}/auth.js +0 -0
  51. /package/{src/hooks → hooks}/useAuth.js +0 -0
  52. /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 {}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes