core-dependencies 0.0.1
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/dist/index.d.ts +60 -0
- package/dist/index.js +75 -0
- package/package.json +112 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as RN from 'react-native';
|
|
2
|
+
export { RN };
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import * as ReactDOM from 'react-dom';
|
|
5
|
+
export { React, ReactDOM };
|
|
6
|
+
import * as Navigation from '@react-navigation/native';
|
|
7
|
+
import * as NativeStack from '@react-navigation/native-stack';
|
|
8
|
+
import * as BottomTabs from '@react-navigation/bottom-tabs';
|
|
9
|
+
import * as MaterialTabs from '@react-navigation/material-top-tabs';
|
|
10
|
+
export { Navigation, NativeStack, BottomTabs, MaterialTabs };
|
|
11
|
+
import * as LegendState from '@legendapp/state';
|
|
12
|
+
import * as QueryClient from '@tanstack/react-query';
|
|
13
|
+
export { LegendState, QueryClient };
|
|
14
|
+
import * as BottomSheet from '@gorhom/bottom-sheet';
|
|
15
|
+
import * as Slider from '@react-native-community/slider';
|
|
16
|
+
import * as DateTimePicker from '@react-native-community/datetimepicker';
|
|
17
|
+
import * as SplashScreen from 'react-native-splash-screen';
|
|
18
|
+
import * as ToastMessage from 'react-native-toast-message';
|
|
19
|
+
import * as SVG from 'react-native-svg';
|
|
20
|
+
import * as PagerView from 'react-native-pager-view';
|
|
21
|
+
import * as ImagePicker from 'react-native-image-picker';
|
|
22
|
+
import * as GestureHandler from 'react-native-gesture-handler';
|
|
23
|
+
import * as Screens from 'react-native-screens';
|
|
24
|
+
import * as SafeAreaContext from 'react-native-safe-area-context';
|
|
25
|
+
import * as Reanimated from 'react-native-reanimated';
|
|
26
|
+
import * as Worklets from 'react-native-worklets';
|
|
27
|
+
import * as WorkletsCore from 'react-native-worklets-core';
|
|
28
|
+
export { BottomSheet, Slider, DateTimePicker, SplashScreen, ToastMessage, SVG, PagerView, ImagePicker, GestureHandler, Screens, SafeAreaContext, Reanimated, Worklets, WorkletsCore };
|
|
29
|
+
import * as AsyncStorage from '@react-native-async-storage/async-storage';
|
|
30
|
+
import * as Keychain from 'react-native-keychain';
|
|
31
|
+
import * as GetRandomValues from 'react-native-get-random-values';
|
|
32
|
+
export { AsyncStorage, Keychain, GetRandomValues };
|
|
33
|
+
import * as DeviceInfo from 'react-native-device-info';
|
|
34
|
+
import * as Biometrics from 'react-native-biometrics';
|
|
35
|
+
export { DeviceInfo, Biometrics };
|
|
36
|
+
import * as Axios from 'axios';
|
|
37
|
+
import * as Base64 from 'base-64';
|
|
38
|
+
import * as UUID from 'uuid';
|
|
39
|
+
import * as Lodash from 'lodash';
|
|
40
|
+
export { Axios, Base64, UUID, Lodash };
|
|
41
|
+
import * as StorybookActions from '@storybook/addon-ondevice-actions';
|
|
42
|
+
import * as StorybookControls from '@storybook/addon-ondevice-controls';
|
|
43
|
+
import * as StorybookRN from '@storybook/react-native';
|
|
44
|
+
import * as TestingLibrary from '@testing-library/react-native';
|
|
45
|
+
import * as TestRenderer from 'react-test-renderer';
|
|
46
|
+
export { StorybookActions, StorybookControls, StorybookRN, TestingLibrary, TestRenderer };
|
|
47
|
+
import * as BabelLoader from 'babel-loader';
|
|
48
|
+
import * as DotEnv from 'dotenv';
|
|
49
|
+
import * as ReactNativeDotEnv from 'react-native-dotenv';
|
|
50
|
+
import * as SVGTransformer from 'react-native-svg-transformer';
|
|
51
|
+
import * as ReactNativeWeb from 'react-native-web';
|
|
52
|
+
export { BabelLoader, DotEnv, ReactNativeDotEnv, SVGTransformer, ReactNativeWeb };
|
|
53
|
+
import * as Jest from 'jest';
|
|
54
|
+
import * as Vitest from 'vitest';
|
|
55
|
+
import * as Playwright from 'playwright';
|
|
56
|
+
export { Jest, Vitest, Playwright };
|
|
57
|
+
import * as TypeScript from 'typescript';
|
|
58
|
+
import * as Vite from 'vite';
|
|
59
|
+
export { TypeScript, Vite };
|
|
60
|
+
export { View, Text, StyleSheet, TouchableOpacity, Pressable, ScrollView, FlatList, Image, TextInput, Alert, Dimensions, Platform, StatusBar, SafeAreaView, Modal, ActivityIndicator, KeyboardAvoidingView, Keyboard, TouchableWithoutFeedback, Linking, AppState, BackHandler, PermissionsAndroid, NativeModules, NativeEventEmitter, DeviceEventEmitter, PanResponder, Animated, Easing, InteractionManager, PixelRatio, RefreshControl, findNodeHandle, processColor, requireNativeComponent, UIManager, ViewStyle, TextStyle, ImageStyle, GestureResponderEvent, NativeSyntheticEvent, NativeScrollEvent, LayoutChangeEvent, NativeTouchEvent, PanResponderGestureState, PanResponderCallbacks, PanResponderInstance, PanResponderStatic } from 'react-native';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// Core Dependencies Export
|
|
2
|
+
// This file exports commonly used libraries and dependencies for the project
|
|
3
|
+
// React Native Core
|
|
4
|
+
import * as RN from 'react-native';
|
|
5
|
+
export { RN };
|
|
6
|
+
// React
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import * as ReactDOM from 'react-dom';
|
|
9
|
+
export { React, ReactDOM };
|
|
10
|
+
// Navigation
|
|
11
|
+
import * as Navigation from '@react-navigation/native';
|
|
12
|
+
import * as NativeStack from '@react-navigation/native-stack';
|
|
13
|
+
import * as BottomTabs from '@react-navigation/bottom-tabs';
|
|
14
|
+
import * as MaterialTabs from '@react-navigation/material-top-tabs';
|
|
15
|
+
export { Navigation, NativeStack, BottomTabs, MaterialTabs };
|
|
16
|
+
// State Management
|
|
17
|
+
import * as LegendState from '@legendapp/state';
|
|
18
|
+
import * as QueryClient from '@tanstack/react-query';
|
|
19
|
+
export { LegendState, QueryClient };
|
|
20
|
+
// UI Components
|
|
21
|
+
import * as BottomSheet from '@gorhom/bottom-sheet';
|
|
22
|
+
import * as Slider from '@react-native-community/slider';
|
|
23
|
+
import * as DateTimePicker from '@react-native-community/datetimepicker';
|
|
24
|
+
import * as SplashScreen from 'react-native-splash-screen';
|
|
25
|
+
import * as ToastMessage from 'react-native-toast-message';
|
|
26
|
+
import * as SVG from 'react-native-svg';
|
|
27
|
+
import * as PagerView from 'react-native-pager-view';
|
|
28
|
+
import * as ImagePicker from 'react-native-image-picker';
|
|
29
|
+
import * as GestureHandler from 'react-native-gesture-handler';
|
|
30
|
+
import * as Screens from 'react-native-screens';
|
|
31
|
+
import * as SafeAreaContext from 'react-native-safe-area-context';
|
|
32
|
+
import * as Reanimated from 'react-native-reanimated';
|
|
33
|
+
import * as Worklets from 'react-native-worklets';
|
|
34
|
+
import * as WorkletsCore from 'react-native-worklets-core';
|
|
35
|
+
export { BottomSheet, Slider, DateTimePicker, SplashScreen, ToastMessage, SVG, PagerView, ImagePicker, GestureHandler, Screens, SafeAreaContext, Reanimated, Worklets, WorkletsCore };
|
|
36
|
+
// Storage & Async
|
|
37
|
+
import * as AsyncStorage from '@react-native-async-storage/async-storage';
|
|
38
|
+
import * as Keychain from 'react-native-keychain';
|
|
39
|
+
import * as GetRandomValues from 'react-native-get-random-values';
|
|
40
|
+
export { AsyncStorage, Keychain, GetRandomValues };
|
|
41
|
+
// Device & Platform
|
|
42
|
+
import * as DeviceInfo from 'react-native-device-info';
|
|
43
|
+
import * as Biometrics from 'react-native-biometrics';
|
|
44
|
+
export { DeviceInfo, Biometrics };
|
|
45
|
+
// HTTP & Utilities
|
|
46
|
+
import * as Axios from 'axios';
|
|
47
|
+
import * as Base64 from 'base-64';
|
|
48
|
+
import * as UUID from 'uuid';
|
|
49
|
+
import * as Lodash from 'lodash';
|
|
50
|
+
export { Axios, Base64, UUID, Lodash };
|
|
51
|
+
// Development & Testing
|
|
52
|
+
import * as StorybookActions from '@storybook/addon-ondevice-actions';
|
|
53
|
+
import * as StorybookControls from '@storybook/addon-ondevice-controls';
|
|
54
|
+
import * as StorybookRN from '@storybook/react-native';
|
|
55
|
+
import * as TestingLibrary from '@testing-library/react-native';
|
|
56
|
+
import * as TestRenderer from 'react-test-renderer';
|
|
57
|
+
export { StorybookActions, StorybookControls, StorybookRN, TestingLibrary, TestRenderer };
|
|
58
|
+
// Build & Configuration
|
|
59
|
+
import * as BabelLoader from 'babel-loader';
|
|
60
|
+
import * as DotEnv from 'dotenv';
|
|
61
|
+
import * as ReactNativeDotEnv from 'react-native-dotenv';
|
|
62
|
+
import * as SVGTransformer from 'react-native-svg-transformer';
|
|
63
|
+
import * as ReactNativeWeb from 'react-native-web';
|
|
64
|
+
export { BabelLoader, DotEnv, ReactNativeDotEnv, SVGTransformer, ReactNativeWeb };
|
|
65
|
+
// Testing & Development Tools
|
|
66
|
+
import * as Jest from 'jest';
|
|
67
|
+
import * as Vitest from 'vitest';
|
|
68
|
+
import * as Playwright from 'playwright';
|
|
69
|
+
export { Jest, Vitest, Playwright };
|
|
70
|
+
// Build Tools
|
|
71
|
+
import * as TypeScript from 'typescript';
|
|
72
|
+
import * as Vite from 'vite';
|
|
73
|
+
export { TypeScript, Vite };
|
|
74
|
+
// Common React Native Components (re-exported to avoid conflicts)
|
|
75
|
+
export { View, Text, StyleSheet, TouchableOpacity, Pressable, ScrollView, FlatList, Image, TextInput, Alert, Dimensions, Platform, StatusBar, SafeAreaView, Modal, ActivityIndicator, KeyboardAvoidingView, Keyboard, TouchableWithoutFeedback, Linking, AppState, BackHandler, PermissionsAndroid, NativeModules, NativeEventEmitter, DeviceEventEmitter, PanResponder, Animated, Easing, InteractionManager, PixelRatio, RefreshControl, findNodeHandle, processColor, requireNativeComponent, UIManager } from 'react-native';
|
package/package.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "core-dependencies",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Shared dependencies and types for React Native mobile projects",
|
|
6
|
+
"author": "Jeff Nguyen",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"module": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"rootDir": "./",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "rm -rf dist && tsc",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@gorhom/bottom-sheet": "^5.2.8",
|
|
26
|
+
"@legendapp/state": "^3.0.0-beta.45",
|
|
27
|
+
"@react-native-async-storage/async-storage": "^2.2.0",
|
|
28
|
+
"@react-native-community/datetimepicker": "^8.6.0",
|
|
29
|
+
"@react-native-community/slider": "^5.1.2",
|
|
30
|
+
"@react-native/new-app-screen": "0.83.1",
|
|
31
|
+
"@react-navigation/bottom-tabs": "^7.9.0",
|
|
32
|
+
"@react-navigation/material-top-tabs": "^7.4.16",
|
|
33
|
+
"@react-navigation/native": "^7.1.26",
|
|
34
|
+
"@react-navigation/native-stack": "^7.9.0",
|
|
35
|
+
"@storybook/addon-ondevice-actions": "^10.2.3",
|
|
36
|
+
"@storybook/addon-ondevice-controls": "^10.2.3",
|
|
37
|
+
"@storybook/react-native": "^10.2.3",
|
|
38
|
+
"@tanstack/react-query": "^5.90.16",
|
|
39
|
+
"axios": "^1.13.2",
|
|
40
|
+
"babel-loader": "^8.4.1",
|
|
41
|
+
"base-64": "^1.0.0",
|
|
42
|
+
"react": "19.2.0",
|
|
43
|
+
"react-dom": "19.2.0",
|
|
44
|
+
"react-native": "0.83.1",
|
|
45
|
+
"react-native-biometrics": "^3.0.1",
|
|
46
|
+
"react-native-device-info": "^15.0.1",
|
|
47
|
+
"react-native-gesture-handler": "^2.30.0",
|
|
48
|
+
"react-native-get-random-values": "^2.0.0",
|
|
49
|
+
"react-native-image-picker": "^8.2.1",
|
|
50
|
+
"react-native-keychain": "^10.0.0",
|
|
51
|
+
"react-native-pager-view": "^8.0.0",
|
|
52
|
+
"react-native-reanimated": "^4.2.1",
|
|
53
|
+
"react-native-safe-area-context": "^5.6.2",
|
|
54
|
+
"react-native-screens": "^4.19.0",
|
|
55
|
+
"react-native-splash-screen": "^3.3.0",
|
|
56
|
+
"react-native-svg": "^15.15.1",
|
|
57
|
+
"react-native-toast-message": "^2.3.3",
|
|
58
|
+
"react-native-worklets": "0.7.0",
|
|
59
|
+
"react-navigation": "^5.0.0",
|
|
60
|
+
"storybook": "^10.2.12",
|
|
61
|
+
"uuid": "^13.0.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@babel/core": "^7.25.2",
|
|
65
|
+
"@babel/plugin-transform-export-namespace-from": "^7.27.1",
|
|
66
|
+
"@babel/preset-env": "^7.25.3",
|
|
67
|
+
"@babel/runtime": "^7.25.0",
|
|
68
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
69
|
+
"@eslint/js": "^9.39.2",
|
|
70
|
+
"@react-native-community/cli": "20.0.0",
|
|
71
|
+
"@react-native-community/cli-platform-android": "20.0.0",
|
|
72
|
+
"@react-native-community/cli-platform-ios": "20.0.0",
|
|
73
|
+
"@react-native/babel-preset": "0.83.1",
|
|
74
|
+
"@react-native/eslint-config": "0.83.1",
|
|
75
|
+
"@react-native/metro-config": "0.83.1",
|
|
76
|
+
"@react-native/typescript-config": "0.83.1",
|
|
77
|
+
"@storybook/addon-a11y": "10.2.8",
|
|
78
|
+
"@storybook/addon-docs": "10.2.8",
|
|
79
|
+
"@storybook/addon-vitest": "10.2.8",
|
|
80
|
+
"@storybook/react-native-web-vite": "10.2.8",
|
|
81
|
+
"@testing-library/react-native": "^13.3.3",
|
|
82
|
+
"@types/jest": "^29.5.13",
|
|
83
|
+
"@types/lodash": "^4.17.21",
|
|
84
|
+
"@types/react": "^19.2.0",
|
|
85
|
+
"@types/react-test-renderer": "^19.1.0",
|
|
86
|
+
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
87
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
88
|
+
"@vitest/browser-playwright": "^4.0.16",
|
|
89
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
90
|
+
"babel-plugin-module-resolver": "^5.0.2",
|
|
91
|
+
"dotenv": "^17.3.1",
|
|
92
|
+
"eslint": "^9.39.2",
|
|
93
|
+
"eslint-plugin-import": "^2.32.0",
|
|
94
|
+
"eslint-plugin-storybook": "10.2.8",
|
|
95
|
+
"globals": "^16.5.0",
|
|
96
|
+
"jest": "^29.6.3",
|
|
97
|
+
"jetifier": "^2.0.0",
|
|
98
|
+
"lodash": "^4.17.21",
|
|
99
|
+
"playwright": "^1.57.0",
|
|
100
|
+
"react-native-dotenv": "^3.4.11",
|
|
101
|
+
"react-native-svg-transformer": "^1.5.2",
|
|
102
|
+
"react-native-web": "^0.21.2",
|
|
103
|
+
"react-native-worklets-core": "^1.6.3",
|
|
104
|
+
"react-test-renderer": "19.2.0",
|
|
105
|
+
"typescript": "^5.8.3",
|
|
106
|
+
"vite": "^7.3.0",
|
|
107
|
+
"vitest": "^4.0.16"
|
|
108
|
+
},
|
|
109
|
+
"engines": {
|
|
110
|
+
"node": ">=20"
|
|
111
|
+
}
|
|
112
|
+
}
|