@amabeth/repeating-wheel-picker 1.1.0 → 1.2.0
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/LICENSE +20 -20
- package/README.md +57 -57
- package/example/index.ts +8 -0
- package/example/node_modules/@expo/cli/static/template/+html.tsx +28 -0
- package/example/node_modules/@expo/cli/static/template/+native-intent.ts +9 -0
- package/example/node_modules/@expo/cli/static/template/[...rsc]+api.ts +16 -0
- package/example/node_modules/ansi-styles/index.d.ts +345 -0
- package/example/node_modules/chalk/index.d.ts +415 -0
- package/example/node_modules/commander/typings/index.d.ts +627 -0
- package/example/node_modules/expo/Expo.podspec +108 -0
- package/example/node_modules/expo/build/Expo.d.ts +8 -0
- package/example/node_modules/expo/build/Expo.fx.d.ts +4 -0
- package/example/node_modules/expo/build/Expo.fx.web.d.ts +3 -0
- package/example/node_modules/expo/build/devtools/DevToolsPluginClient.d.ts +72 -0
- package/example/node_modules/expo/build/devtools/DevToolsPluginClientFactory.d.ts +16 -0
- package/example/node_modules/expo/build/devtools/DevToolsPluginClientImplApp.d.ts +15 -0
- package/example/node_modules/expo/build/devtools/DevToolsPluginClientImplBrowser.d.ts +14 -0
- package/example/node_modules/expo/build/devtools/MessageFramePacker.d.ts +50 -0
- package/example/node_modules/expo/build/devtools/ProtocolVersion.d.ts +7 -0
- package/example/node_modules/expo/build/devtools/WebSocketBackingStore.d.ts +10 -0
- package/example/node_modules/expo/build/devtools/WebSocketWithReconnect.d.ts +81 -0
- package/example/node_modules/expo/build/devtools/devtools.types.d.ts +42 -0
- package/example/node_modules/expo/build/devtools/getConnectionInfo.d.ts +6 -0
- package/example/node_modules/expo/build/devtools/getConnectionInfo.native.d.ts +6 -0
- package/example/node_modules/expo/build/devtools/index.d.ts +12 -0
- package/example/node_modules/expo/build/devtools/logger.d.ts +6 -0
- package/example/node_modules/expo/build/dom/base.d.ts +5 -0
- package/example/node_modules/expo/build/dom/dom-entry.d.ts +3 -0
- package/example/node_modules/expo/build/dom/dom-hooks.d.ts +8 -0
- package/example/node_modules/expo/build/dom/dom.d.ts +5 -0
- package/example/node_modules/expo/build/dom/dom.types.d.ts +34 -0
- package/example/node_modules/expo/build/dom/dom.web.d.ts +3 -0
- package/example/node_modules/expo/build/dom/global-events.d.ts +4 -0
- package/example/node_modules/expo/build/dom/injection.d.ts +9 -0
- package/example/node_modules/expo/build/dom/internal.d.ts +3 -0
- package/example/node_modules/expo/build/dom/internal.web.d.ts +2 -0
- package/example/node_modules/expo/build/dom/marshal.d.ts +4 -0
- package/example/node_modules/expo/build/dom/webview/ExpoDOMWebView.d.ts +6 -0
- package/example/node_modules/expo/build/dom/webview/RNWebView.d.ts +7 -0
- package/example/node_modules/expo/build/dom/webview/useDebugZeroHeight.d.ts +12 -0
- package/example/node_modules/expo/build/dom/webview-wrapper.d.ts +16 -0
- package/example/node_modules/expo/build/environment/DevLoadingView.d.ts +3 -0
- package/example/node_modules/expo/build/environment/DevLoadingView.web.d.ts +3 -0
- package/example/node_modules/expo/build/environment/DevLoadingViewNativeModule.d.ts +9 -0
- package/example/node_modules/expo/build/environment/DevLoadingViewNativeModule.native.d.ts +3 -0
- package/example/node_modules/expo/build/environment/ExpoGo.d.ts +31 -0
- package/example/node_modules/expo/build/environment/ExpoGo.web.d.ts +3 -0
- package/example/node_modules/expo/build/environment/getInitialSafeArea.d.ts +7 -0
- package/example/node_modules/expo/build/environment/getInitialSafeArea.native.d.ts +11 -0
- package/example/node_modules/expo/build/errors/AppEntryNotFound.d.ts +2 -0
- package/example/node_modules/expo/build/errors/ExpoErrorManager.d.ts +8 -0
- package/example/node_modules/expo/build/errors/ExpoErrorManager.native.d.ts +4 -0
- package/example/node_modules/expo/build/hooks/useEvent.d.ts +59 -0
- package/example/node_modules/expo/build/launch/registerRootComponent.d.ts +30 -0
- package/example/node_modules/expo/build/launch/withDevTools.d.ts +3 -0
- package/example/node_modules/expo/build/launch/withDevTools.ios.d.ts +7 -0
- package/example/node_modules/expo/build/launch/withDevTools.web.d.ts +3 -0
- package/example/node_modules/expo/build/timer/polyfillNextTick.d.ts +6 -0
- package/example/node_modules/expo/build/utils/blobUtils.d.ts +9 -0
- package/example/node_modules/expo/build/utils/getBundleUrl.d.ts +2 -0
- package/example/node_modules/expo/build/utils/getBundleUrl.native.d.ts +2 -0
- package/example/node_modules/expo/build/utils/getBundleUrl.web.d.ts +2 -0
- package/example/node_modules/expo/build/winter/FormData.d.ts +49 -0
- package/example/node_modules/expo/build/winter/ImportMetaRegistry.d.ts +9 -0
- package/example/node_modules/expo/build/winter/TextDecoder.d.ts +20 -0
- package/example/node_modules/expo/build/winter/fetch/ExpoFetchModule.d.ts +2 -0
- package/example/node_modules/expo/build/winter/fetch/ExpoFetchModule.web.d.ts +10 -0
- package/example/node_modules/expo/build/winter/fetch/FetchErrors.d.ts +8 -0
- package/example/node_modules/expo/build/winter/fetch/FetchResponse.d.ts +31 -0
- package/example/node_modules/expo/build/winter/fetch/NativeRequest.d.ts +30 -0
- package/example/node_modules/expo/build/winter/fetch/RequestUtils.d.ts +21 -0
- package/example/node_modules/expo/build/winter/fetch/convertFormData.d.ts +19 -0
- package/example/node_modules/expo/build/winter/fetch/fetch.d.ts +4 -0
- package/example/node_modules/expo/build/winter/fetch/fetch.types.d.ts +16 -0
- package/example/node_modules/expo/build/winter/fetch/fetch.web.d.ts +2 -0
- package/example/node_modules/expo/build/winter/fetch/index.d.ts +3 -0
- package/example/node_modules/expo/build/winter/index.d.ts +2 -0
- package/example/node_modules/expo/build/winter/runtime.d.ts +2 -0
- package/example/node_modules/expo/build/winter/runtime.native.d.ts +2 -0
- package/example/node_modules/expo/build/winter/url.d.ts +23 -0
- package/example/node_modules/expo/config-plugins.d.ts +1 -0
- package/example/node_modules/expo/config.d.ts +1 -0
- package/example/node_modules/expo/devtools.d.ts +1 -0
- package/example/node_modules/expo/dom/global.d.ts +1 -0
- package/example/node_modules/expo/dom/index.d.ts +1 -0
- package/example/node_modules/expo/dom/internal.d.ts +1 -0
- package/example/node_modules/expo/fetch.d.ts +1 -0
- package/example/node_modules/expo/fingerprint.d.ts +1 -0
- package/example/node_modules/expo/metro-config.d.ts +1 -0
- package/example/node_modules/expo/react-native.config.js +50 -0
- package/example/node_modules/expo/src/Expo.fx.tsx +53 -0
- package/example/node_modules/expo/src/Expo.fx.web.tsx +21 -0
- package/example/node_modules/expo/src/Expo.ts +30 -0
- package/example/node_modules/expo/src/devtools/DevToolsPluginClient.ts +240 -0
- package/example/node_modules/expo/src/devtools/DevToolsPluginClientFactory.ts +73 -0
- package/example/node_modules/expo/src/devtools/DevToolsPluginClientImplApp.ts +56 -0
- package/example/node_modules/expo/src/devtools/DevToolsPluginClientImplBrowser.ts +38 -0
- package/example/node_modules/expo/src/devtools/MessageFramePacker.ts +235 -0
- package/example/node_modules/expo/src/devtools/ProtocolVersion.ts +6 -0
- package/example/node_modules/expo/src/devtools/WebSocketBackingStore.ts +10 -0
- package/example/node_modules/expo/src/devtools/WebSocketWithReconnect.ts +318 -0
- package/example/node_modules/expo/src/devtools/devtools.types.ts +50 -0
- package/example/node_modules/expo/src/devtools/getConnectionInfo.native.ts +18 -0
- package/example/node_modules/expo/src/devtools/getConnectionInfo.ts +16 -0
- package/example/node_modules/expo/src/devtools/index.ts +53 -0
- package/example/node_modules/expo/src/devtools/logger.ts +29 -0
- package/example/node_modules/expo/src/dom/base.ts +62 -0
- package/example/node_modules/expo/src/dom/dom-entry.tsx +128 -0
- package/example/node_modules/expo/src/dom/dom-hooks.ts +46 -0
- package/example/node_modules/expo/src/dom/dom.ts +8 -0
- package/example/node_modules/expo/src/dom/dom.types.ts +39 -0
- package/example/node_modules/expo/src/dom/dom.web.ts +6 -0
- package/example/node_modules/expo/src/dom/global-events.ts +16 -0
- package/example/node_modules/expo/src/dom/injection.ts +42 -0
- package/example/node_modules/expo/src/dom/internal.ts +5 -0
- package/example/node_modules/expo/src/dom/internal.web.ts +1 -0
- package/example/node_modules/expo/src/dom/marshal.tsx +116 -0
- package/example/node_modules/expo/src/dom/webview/ExpoDOMWebView.ts +10 -0
- package/example/node_modules/expo/src/dom/webview/RNWebView.ts +12 -0
- package/example/node_modules/expo/src/dom/webview/useDebugZeroHeight.ts +62 -0
- package/example/node_modules/expo/src/dom/webview-wrapper.tsx +253 -0
- package/example/node_modules/expo/src/environment/DevLoadingView.tsx +123 -0
- package/example/node_modules/expo/src/environment/DevLoadingView.web.tsx +135 -0
- package/example/node_modules/expo/src/environment/DevLoadingViewNativeModule.native.ts +3 -0
- package/example/node_modules/expo/src/environment/DevLoadingViewNativeModule.ts +7 -0
- package/example/node_modules/expo/src/environment/ExpoGo.ts +53 -0
- package/example/node_modules/expo/src/environment/ExpoGo.web.ts +7 -0
- package/example/node_modules/expo/src/environment/getInitialSafeArea.native.ts +16 -0
- package/example/node_modules/expo/src/environment/getInitialSafeArea.ts +8 -0
- package/example/node_modules/expo/src/errors/AppEntryNotFound.tsx +35 -0
- package/example/node_modules/expo/src/errors/ExpoErrorManager.native.ts +51 -0
- package/example/node_modules/expo/src/errors/ExpoErrorManager.ts +11 -0
- package/example/node_modules/expo/src/hooks/useEvent.ts +112 -0
- package/example/node_modules/expo/src/launch/registerRootComponent.tsx +64 -0
- package/example/node_modules/expo/src/launch/withDevTools.ios.tsx +47 -0
- package/example/node_modules/expo/src/launch/withDevTools.tsx +30 -0
- package/example/node_modules/expo/src/launch/withDevTools.web.tsx +23 -0
- package/example/node_modules/expo/src/timer/polyfillNextTick.ts +10 -0
- package/example/node_modules/expo/src/ts-declarations/console.d.ts +47 -0
- package/example/node_modules/expo/src/ts-declarations/global.d.ts +12 -0
- package/example/node_modules/expo/src/ts-declarations/react-native.d.ts +34 -0
- package/example/node_modules/expo/src/ts-declarations/whatwg-url-without-unicode.d.ts +186 -0
- package/example/node_modules/expo/src/utils/blobUtils.ts +23 -0
- package/example/node_modules/expo/src/utils/getBundleUrl.native.ts +17 -0
- package/example/node_modules/expo/src/utils/getBundleUrl.ts +5 -0
- package/example/node_modules/expo/src/utils/getBundleUrl.web.ts +21 -0
- package/example/node_modules/expo/src/winter/FormData.ts +222 -0
- package/example/node_modules/expo/src/winter/ImportMetaRegistry.ts +14 -0
- package/example/node_modules/expo/src/winter/TextDecoder.ts +429 -0
- package/example/node_modules/expo/src/winter/fetch/ExpoFetchModule.ts +3 -0
- package/example/node_modules/expo/src/winter/fetch/ExpoFetchModule.web.ts +7 -0
- package/example/node_modules/expo/src/winter/fetch/FetchErrors.ts +11 -0
- package/example/node_modules/expo/src/winter/fetch/FetchResponse.ts +146 -0
- package/example/node_modules/expo/src/winter/fetch/NativeRequest.ts +38 -0
- package/example/node_modules/expo/src/winter/fetch/RequestUtils.ts +124 -0
- package/example/node_modules/expo/src/winter/fetch/convertFormData.ts +92 -0
- package/example/node_modules/expo/src/winter/fetch/fetch.ts +59 -0
- package/example/node_modules/expo/src/winter/fetch/fetch.types.ts +17 -0
- package/example/node_modules/expo/src/winter/fetch/fetch.web.ts +1 -0
- package/example/node_modules/expo/src/winter/fetch/index.ts +2 -0
- package/example/node_modules/expo/src/winter/index.ts +1 -0
- package/example/node_modules/expo/src/winter/runtime.native.ts +41 -0
- package/example/node_modules/expo/src/winter/runtime.ts +5 -0
- package/example/node_modules/expo/src/winter/url.ts +116 -0
- package/example/node_modules/expo/types/global.d.ts +38 -0
- package/example/node_modules/expo/types/index.d.ts +3 -0
- package/example/node_modules/expo/types/metro-require.d.ts +52 -0
- package/example/node_modules/expo/types/react-native-web.d.ts +291 -0
- package/example/node_modules/expo-modules-autolinking/build/ExpoModuleConfig.d.ts +85 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/findModules.d.ts +5 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/generatePackageList.d.ts +11 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/getConfiguration.d.ts +2 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/index.d.ts +17 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/mergeLinkingOptions.d.ts +21 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/resolveModules.d.ts +9 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/utils.d.ts +6 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/verifySearchResults.d.ts +5 -0
- package/example/node_modules/expo-modules-autolinking/build/fileUtils.d.ts +18 -0
- package/example/node_modules/expo-modules-autolinking/build/index.d.ts +1 -0
- package/example/node_modules/expo-modules-autolinking/build/platforms/android.d.ts +38 -0
- package/example/node_modules/expo-modules-autolinking/build/platforms/apple.d.ts +15 -0
- package/example/node_modules/expo-modules-autolinking/build/platforms/devtools.d.ts +3 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/androidResolver.d.ts +20 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/config.d.ts +5 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/index.d.ts +2 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/iosResolver.d.ts +2 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/reactNativeConfig.d.ts +13 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/reactNativeConfig.types.d.ts +95 -0
- package/example/node_modules/expo-modules-autolinking/build/types.d.ts +319 -0
- package/example/node_modules/expo-modules-autolinking/e2e/TestUtils.ts +53 -0
- package/example/node_modules/expo-modules-autolinking/exports.d.ts +1 -0
- package/example/node_modules/expo-modules-autolinking/src/ExpoModuleConfig.ts +181 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/findModules.ts +259 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/generatePackageList.ts +46 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/getConfiguration.ts +7 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/index.ts +45 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/mergeLinkingOptions.ts +127 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/resolveModules.ts +46 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/utils.ts +37 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/verifySearchResults.ts +33 -0
- package/example/node_modules/expo-modules-autolinking/src/fileUtils.ts +64 -0
- package/example/node_modules/expo-modules-autolinking/src/index.ts +262 -0
- package/example/node_modules/expo-modules-autolinking/src/platforms/android.ts +303 -0
- package/example/node_modules/expo-modules-autolinking/src/platforms/apple.ts +292 -0
- package/example/node_modules/expo-modules-autolinking/src/platforms/devtools.ts +25 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/androidResolver.ts +264 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/config.ts +67 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/index.ts +2 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/iosResolver.ts +37 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/reactNativeConfig.ts +245 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/reactNativeConfig.types.ts +107 -0
- package/example/node_modules/expo-modules-autolinking/src/types.ts +384 -0
- package/example/node_modules/find-up/index.d.ts +138 -0
- package/example/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
- package/example/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/example/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
- package/example/node_modules/glob/dist/commonjs/index.d.ts +97 -0
- package/example/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
- package/example/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
- package/example/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
- package/example/node_modules/glob/dist/esm/glob.d.ts +388 -0
- package/example/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/example/node_modules/glob/dist/esm/ignore.d.ts +24 -0
- package/example/node_modules/glob/dist/esm/index.d.ts +97 -0
- package/example/node_modules/glob/dist/esm/pattern.d.ts +76 -0
- package/example/node_modules/glob/dist/esm/processor.d.ts +59 -0
- package/example/node_modules/glob/dist/esm/walker.d.ts +97 -0
- package/example/node_modules/locate-path/index.d.ts +83 -0
- package/example/node_modules/log-symbols/node_modules/chalk/types/index.d.ts +97 -0
- package/example/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/example/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
- package/example/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/example/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
- package/example/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
- package/example/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
- package/example/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/example/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
- package/example/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/example/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
- package/example/node_modules/minimatch/dist/esm/index.d.ts +94 -0
- package/example/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
- package/example/node_modules/ora/index.d.ts +257 -0
- package/example/node_modules/ora/node_modules/chalk/types/index.d.ts +97 -0
- package/example/node_modules/ora/node_modules/strip-ansi/index.d.ts +15 -0
- package/example/node_modules/p-locate/index.d.ts +53 -0
- package/example/node_modules/path-exists/index.d.ts +28 -0
- package/example/package.json +29 -0
- package/example/src/constants/styles.ts +43 -0
- package/example/src/hooks/useComponentHeight.ts +13 -0
- package/example/src/scenes/app.tsx +33 -0
- package/example/src/scenes/booleanPicker.tsx +60 -0
- package/example/src/scenes/customTypePicker.tsx +83 -0
- package/example/src/scenes/numberPicker.tsx +75 -0
- package/example/src/scenes/stringPicker.tsx +64 -0
- package/lib/module/index.js +6 -6
- package/lib/module/index.js.map +1 -1
- package/package.json +168 -183
- package/src/index.tsx +0 -507
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
import { ExpoModuleConfig } from './ExpoModuleConfig';
|
|
2
|
+
|
|
3
|
+
type Required<T, K extends keyof T> = T & { [P in K]-?: T[P] };
|
|
4
|
+
|
|
5
|
+
type WithRequired<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>> & Required<T, K>;
|
|
6
|
+
|
|
7
|
+
export type SupportedPlatform = 'apple' | 'ios' | 'android' | 'web' | 'macos' | 'tvos' | 'devtools';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Options that can be passed through `expo.autolinking` config in the package.json file.
|
|
11
|
+
*/
|
|
12
|
+
export type AutolinkingOptions = {
|
|
13
|
+
searchPaths?: string[] | null;
|
|
14
|
+
ignorePaths?: string[] | null;
|
|
15
|
+
exclude?: string[] | null;
|
|
16
|
+
flags?: Record<string, any>;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type AndroidAutolinkingOptions = AutolinkingOptions & {
|
|
20
|
+
buildFromSource?: string[] | null;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type BaseAutolinkingOptions = AutolinkingOptions & {
|
|
24
|
+
[key in SupportedPlatform]?: AutolinkingOptions;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export interface PlatformAutolinkingOptions extends BaseAutolinkingOptions {
|
|
28
|
+
android?: AndroidAutolinkingOptions;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface SearchOptions {
|
|
32
|
+
// Available in the CLI
|
|
33
|
+
searchPaths: string[];
|
|
34
|
+
ignorePaths?: string[] | null;
|
|
35
|
+
exclude?: string[] | null;
|
|
36
|
+
platform: SupportedPlatform;
|
|
37
|
+
silent?: boolean;
|
|
38
|
+
nativeModulesDir?: string | null;
|
|
39
|
+
projectRoot: string;
|
|
40
|
+
/**
|
|
41
|
+
* Filter the search results to only include the project dependencies.
|
|
42
|
+
* In a monorepo, you may like to set this to false and link all modules from the monorepo.
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
onlyProjectDeps?: boolean;
|
|
46
|
+
|
|
47
|
+
// Scratched from project's config
|
|
48
|
+
flags?: Record<string, any>;
|
|
49
|
+
|
|
50
|
+
android?: {
|
|
51
|
+
buildFromSource?: string[] | null;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface ResolveOptions extends SearchOptions {
|
|
56
|
+
json?: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface GenerateOptions extends ResolveOptions {
|
|
60
|
+
target: string;
|
|
61
|
+
namespace?: string;
|
|
62
|
+
empty?: boolean;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface GenerateModulesProviderOptions extends ResolveOptions {
|
|
66
|
+
target: string;
|
|
67
|
+
entitlement?: string;
|
|
68
|
+
packages: string[];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type PackageRevision = {
|
|
72
|
+
path: string;
|
|
73
|
+
version: string;
|
|
74
|
+
config?: ExpoModuleConfig;
|
|
75
|
+
duplicates?: PackageRevision[];
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type SearchResults = {
|
|
79
|
+
[moduleName: string]: PackageRevision;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export interface ModuleAndroidProjectInfo {
|
|
83
|
+
name: string;
|
|
84
|
+
sourceDir: string;
|
|
85
|
+
modules: string[];
|
|
86
|
+
publication?: AndroidPublication;
|
|
87
|
+
aarProjects?: AndroidGradleAarProjectDescriptor[];
|
|
88
|
+
shouldUsePublicationScriptPath?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface ModuleAndroidPluginInfo {
|
|
92
|
+
id: string;
|
|
93
|
+
sourceDir: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface ModuleAndroidAarProjectInfo extends AndroidGradleAarProjectDescriptor {
|
|
97
|
+
projectDir: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface CommonNativeModuleDescriptor {
|
|
101
|
+
packageName: string;
|
|
102
|
+
coreFeatures?: string[];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface ModuleDescriptorAndroid extends CommonNativeModuleDescriptor {
|
|
106
|
+
projects?: ModuleAndroidProjectInfo[];
|
|
107
|
+
plugins?: ModuleAndroidPluginInfo[];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface ModuleIosPodspecInfo {
|
|
111
|
+
podName: string;
|
|
112
|
+
podspecDir: string;
|
|
113
|
+
}
|
|
114
|
+
export interface ModuleDescriptorIos extends CommonNativeModuleDescriptor {
|
|
115
|
+
modules: string[];
|
|
116
|
+
pods: ModuleIosPodspecInfo[];
|
|
117
|
+
flags: Record<string, any> | undefined;
|
|
118
|
+
swiftModuleNames: string[];
|
|
119
|
+
appDelegateSubscribers: string[];
|
|
120
|
+
reactDelegateHandlers: string[];
|
|
121
|
+
debugOnly: boolean;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface ModuleDescriptorDevTools {
|
|
125
|
+
packageName: string;
|
|
126
|
+
packageRoot: string;
|
|
127
|
+
webpageRoot: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type ModuleDescriptor =
|
|
131
|
+
| ModuleDescriptorAndroid
|
|
132
|
+
| ModuleDescriptorIos
|
|
133
|
+
| ModuleDescriptorDevTools;
|
|
134
|
+
|
|
135
|
+
export interface AndroidGradlePluginDescriptor {
|
|
136
|
+
/**
|
|
137
|
+
* Gradle plugin ID
|
|
138
|
+
*/
|
|
139
|
+
id: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Artifact group
|
|
143
|
+
*/
|
|
144
|
+
group: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Relative path to the gradle plugin directory
|
|
148
|
+
*/
|
|
149
|
+
sourceDir: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Whether to apply the plugin to the root project
|
|
153
|
+
* Defaults to true
|
|
154
|
+
*/
|
|
155
|
+
applyToRootProject?: boolean;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface AndroidGradleAarProjectDescriptor {
|
|
159
|
+
/**
|
|
160
|
+
* Gradle project name
|
|
161
|
+
*/
|
|
162
|
+
name: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Path to the AAR file
|
|
166
|
+
*/
|
|
167
|
+
aarFilePath: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Information about the available publication of an Android AAR file.
|
|
172
|
+
*/
|
|
173
|
+
export interface AndroidPublication {
|
|
174
|
+
/**
|
|
175
|
+
* The Maven artifact ID.
|
|
176
|
+
*/
|
|
177
|
+
id: string;
|
|
178
|
+
/**
|
|
179
|
+
* The Maven group ID.
|
|
180
|
+
*/
|
|
181
|
+
group: string;
|
|
182
|
+
/**
|
|
183
|
+
* The Maven version.
|
|
184
|
+
*/
|
|
185
|
+
version: string;
|
|
186
|
+
/**
|
|
187
|
+
* The Maven repository.
|
|
188
|
+
*/
|
|
189
|
+
repository: string;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Represents a raw config specific to Apple platforms.
|
|
194
|
+
*/
|
|
195
|
+
export type RawModuleConfigApple = {
|
|
196
|
+
/**
|
|
197
|
+
* Names of Swift native modules classes to put to the generated modules provider file.
|
|
198
|
+
*/
|
|
199
|
+
modules?: string[];
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Names of Swift classes that hooks into `ExpoAppDelegate` to receive AppDelegate life-cycle events.
|
|
203
|
+
*/
|
|
204
|
+
appDelegateSubscribers?: string[];
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Names of Swift classes that implement `ExpoReactDelegateHandler` to hook React instance creation.
|
|
208
|
+
*/
|
|
209
|
+
reactDelegateHandlers?: string[];
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Podspec relative path.
|
|
213
|
+
* To have multiple podspecs, string array type is also supported.
|
|
214
|
+
*/
|
|
215
|
+
podspecPath?: string | string[];
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Swift product module name. If empty, the pod name is used for Swift imports.
|
|
219
|
+
* To have multiple modules, string array is also supported.
|
|
220
|
+
*/
|
|
221
|
+
swiftModuleName?: string | string[];
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Whether this module will be added only to the debug configuration.
|
|
225
|
+
* Defaults to false.
|
|
226
|
+
*/
|
|
227
|
+
debugOnly?: boolean;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Represents a raw config specific to Android platforms.
|
|
232
|
+
*/
|
|
233
|
+
export type RawAndroidProjectConfig = {
|
|
234
|
+
/**
|
|
235
|
+
* The name of the project. It will be used as the Gradle project name.
|
|
236
|
+
*/
|
|
237
|
+
name?: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* The path to the project directory. Should contain the `build.gradle{.kts}` file.
|
|
241
|
+
* It's relative to the module root directory.
|
|
242
|
+
*/
|
|
243
|
+
path?: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Information about the available publication of an Android AAR file
|
|
247
|
+
*/
|
|
248
|
+
publication?: AndroidPublication;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The path to the script that determines whether the publication should be used.
|
|
252
|
+
* Evaluate in the context of the `settings.gradle` file.
|
|
253
|
+
* Won't be run if the publication is not defined.
|
|
254
|
+
*/
|
|
255
|
+
shouldUsePublicationScriptPath?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Names of the modules to be linked in the project.
|
|
258
|
+
*/
|
|
259
|
+
modules?: string[];
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Prebuilded AAR projects.
|
|
263
|
+
*/
|
|
264
|
+
gradleAarProjects?: AndroidGradleAarProjectDescriptor[];
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export type RawAndroidConfig = {
|
|
268
|
+
projects?: WithRequired<RawAndroidProjectConfig, 'name' | 'path'>[];
|
|
269
|
+
/**
|
|
270
|
+
* Gradle plugins.
|
|
271
|
+
*/
|
|
272
|
+
gradlePlugins?: AndroidGradlePluginDescriptor[];
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Gradle projects containing AAR files.
|
|
276
|
+
*/
|
|
277
|
+
} & RawAndroidProjectConfig;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Represents a raw config from `expo-module.json`.
|
|
281
|
+
*/
|
|
282
|
+
export interface RawExpoModuleConfig {
|
|
283
|
+
/**
|
|
284
|
+
* An array of supported platforms.
|
|
285
|
+
*/
|
|
286
|
+
platforms?: SupportedPlatform[];
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* A config for all Apple platforms.
|
|
290
|
+
*/
|
|
291
|
+
apple?: RawModuleConfigApple;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* The legacy config previously used for iOS platform. For backwards compatibility it's used as the fallback for `apple`.
|
|
295
|
+
* @deprecated As the module can now support more than iOS platform, use the generic `apple` config instead.
|
|
296
|
+
*/
|
|
297
|
+
ios?: RawModuleConfigApple;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Android-specific config.
|
|
301
|
+
*/
|
|
302
|
+
android?: RawAndroidConfig;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* List of core features that this module requires.
|
|
306
|
+
*/
|
|
307
|
+
coreFeatures?: string[];
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* DevTools-specific config.
|
|
311
|
+
*/
|
|
312
|
+
devtools?: {
|
|
313
|
+
/**
|
|
314
|
+
* The webpage root directory for Expo CLI DevTools to serve the web resources.
|
|
315
|
+
*/
|
|
316
|
+
webpageRoot: string;
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
interface AndroidMavenRepositoryPasswordCredentials {
|
|
321
|
+
username: string;
|
|
322
|
+
password: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
interface AndroidMavenRepositoryHttpHeaderCredentials {
|
|
326
|
+
name: string;
|
|
327
|
+
value: string;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
interface AndroidMavenRepositoryAWSCredentials {
|
|
331
|
+
accessKey: string;
|
|
332
|
+
secretKey: string;
|
|
333
|
+
sessionToken?: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
type AndroidMavenRepositoryCredentials =
|
|
337
|
+
| AndroidMavenRepositoryPasswordCredentials
|
|
338
|
+
| AndroidMavenRepositoryHttpHeaderCredentials
|
|
339
|
+
| AndroidMavenRepositoryAWSCredentials;
|
|
340
|
+
|
|
341
|
+
export interface AndroidMavenRepository {
|
|
342
|
+
/**
|
|
343
|
+
* The URL of the Maven repository.
|
|
344
|
+
*/
|
|
345
|
+
url: string;
|
|
346
|
+
/**
|
|
347
|
+
* The credentials to use when accessing the Maven repository.
|
|
348
|
+
* May be of type PasswordCredentials, HttpHeaderCredentials, or AWSCredentials.
|
|
349
|
+
*
|
|
350
|
+
* @see the authentication schemes section of [Gradle documentation](https://docs.gradle.org/current/userguide/declaring_repositories.html#sec:authentication_schemes) for more information.
|
|
351
|
+
*/
|
|
352
|
+
credentials?: AndroidMavenRepositoryCredentials;
|
|
353
|
+
/**
|
|
354
|
+
* The authentication scheme to use when accessing the Maven repository.
|
|
355
|
+
*/
|
|
356
|
+
authentication?: 'basic' | 'digest' | 'header';
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
interface ApplePod {
|
|
360
|
+
name: string;
|
|
361
|
+
version?: string;
|
|
362
|
+
configurations?: string[];
|
|
363
|
+
modular_headers?: boolean;
|
|
364
|
+
source?: string;
|
|
365
|
+
path?: string;
|
|
366
|
+
podspec?: string;
|
|
367
|
+
testspecs?: string[];
|
|
368
|
+
git?: string;
|
|
369
|
+
branch?: string;
|
|
370
|
+
tag?: string;
|
|
371
|
+
commit?: string;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type ExtraDependencies = AndroidMavenRepository[] | ApplePod[];
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Represents code signing entitlements passed to the `ExpoModulesProvider` for Apple platforms.
|
|
378
|
+
*/
|
|
379
|
+
export interface AppleCodeSignEntitlements {
|
|
380
|
+
/**
|
|
381
|
+
* @see https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_application-groups
|
|
382
|
+
*/
|
|
383
|
+
appGroups?: string[];
|
|
384
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/unified-signatures */
|
|
2
|
+
import {Options as LocatePathOptions} from 'locate-path';
|
|
3
|
+
|
|
4
|
+
declare const stop: unique symbol;
|
|
5
|
+
|
|
6
|
+
declare namespace findUp {
|
|
7
|
+
interface Options extends LocatePathOptions {}
|
|
8
|
+
|
|
9
|
+
type StopSymbol = typeof stop;
|
|
10
|
+
|
|
11
|
+
type Match = string | StopSymbol | undefined;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare const findUp: {
|
|
15
|
+
sync: {
|
|
16
|
+
/**
|
|
17
|
+
Synchronously check if a path exists.
|
|
18
|
+
|
|
19
|
+
@param path - Path to the file or directory.
|
|
20
|
+
@returns Whether the path exists.
|
|
21
|
+
|
|
22
|
+
@example
|
|
23
|
+
```
|
|
24
|
+
import findUp = require('find-up');
|
|
25
|
+
|
|
26
|
+
console.log(findUp.sync.exists('/Users/sindresorhus/unicorn.png'));
|
|
27
|
+
//=> true
|
|
28
|
+
```
|
|
29
|
+
*/
|
|
30
|
+
exists: (path: string) => boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
Synchronously find a file or directory by walking up parent directories.
|
|
34
|
+
|
|
35
|
+
@param name - Name of the file or directory to find. Can be multiple.
|
|
36
|
+
@returns The first path found (by respecting the order of `name`s) or `undefined` if none could be found.
|
|
37
|
+
*/
|
|
38
|
+
(name: string | readonly string[], options?: findUp.Options): string | undefined;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
Synchronously find a file or directory by walking up parent directories.
|
|
42
|
+
|
|
43
|
+
@param matcher - Called for each directory in the search. Return a path or `findUp.stop` to stop the search.
|
|
44
|
+
@returns The first path found or `undefined` if none could be found.
|
|
45
|
+
|
|
46
|
+
@example
|
|
47
|
+
```
|
|
48
|
+
import path = require('path');
|
|
49
|
+
import findUp = require('find-up');
|
|
50
|
+
|
|
51
|
+
console.log(findUp.sync(directory => {
|
|
52
|
+
const hasUnicorns = findUp.sync.exists(path.join(directory, 'unicorn.png'));
|
|
53
|
+
return hasUnicorns && directory;
|
|
54
|
+
}, {type: 'directory'}));
|
|
55
|
+
//=> '/Users/sindresorhus'
|
|
56
|
+
```
|
|
57
|
+
*/
|
|
58
|
+
(matcher: (directory: string) => findUp.Match, options?: findUp.Options): string | undefined;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
Check if a path exists.
|
|
63
|
+
|
|
64
|
+
@param path - Path to a file or directory.
|
|
65
|
+
@returns Whether the path exists.
|
|
66
|
+
|
|
67
|
+
@example
|
|
68
|
+
```
|
|
69
|
+
import findUp = require('find-up');
|
|
70
|
+
|
|
71
|
+
(async () => {
|
|
72
|
+
console.log(await findUp.exists('/Users/sindresorhus/unicorn.png'));
|
|
73
|
+
//=> true
|
|
74
|
+
})();
|
|
75
|
+
```
|
|
76
|
+
*/
|
|
77
|
+
exists: (path: string) => Promise<boolean>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
Return this in a `matcher` function to stop the search and force `findUp` to immediately return `undefined`.
|
|
81
|
+
*/
|
|
82
|
+
readonly stop: findUp.StopSymbol;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
Find a file or directory by walking up parent directories.
|
|
86
|
+
|
|
87
|
+
@param name - Name of the file or directory to find. Can be multiple.
|
|
88
|
+
@returns The first path found (by respecting the order of `name`s) or `undefined` if none could be found.
|
|
89
|
+
|
|
90
|
+
@example
|
|
91
|
+
```
|
|
92
|
+
// /
|
|
93
|
+
// └── Users
|
|
94
|
+
// └── sindresorhus
|
|
95
|
+
// ├── unicorn.png
|
|
96
|
+
// └── foo
|
|
97
|
+
// └── bar
|
|
98
|
+
// ├── baz
|
|
99
|
+
// └── example.js
|
|
100
|
+
|
|
101
|
+
// example.js
|
|
102
|
+
import findUp = require('find-up');
|
|
103
|
+
|
|
104
|
+
(async () => {
|
|
105
|
+
console.log(await findUp('unicorn.png'));
|
|
106
|
+
//=> '/Users/sindresorhus/unicorn.png'
|
|
107
|
+
|
|
108
|
+
console.log(await findUp(['rainbow.png', 'unicorn.png']));
|
|
109
|
+
//=> '/Users/sindresorhus/unicorn.png'
|
|
110
|
+
})();
|
|
111
|
+
```
|
|
112
|
+
*/
|
|
113
|
+
(name: string | readonly string[], options?: findUp.Options): Promise<string | undefined>;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
Find a file or directory by walking up parent directories.
|
|
117
|
+
|
|
118
|
+
@param matcher - Called for each directory in the search. Return a path or `findUp.stop` to stop the search.
|
|
119
|
+
@returns The first path found or `undefined` if none could be found.
|
|
120
|
+
|
|
121
|
+
@example
|
|
122
|
+
```
|
|
123
|
+
import path = require('path');
|
|
124
|
+
import findUp = require('find-up');
|
|
125
|
+
|
|
126
|
+
(async () => {
|
|
127
|
+
console.log(await findUp(async directory => {
|
|
128
|
+
const hasUnicorns = await findUp.exists(path.join(directory, 'unicorn.png'));
|
|
129
|
+
return hasUnicorns && directory;
|
|
130
|
+
}, {type: 'directory'}));
|
|
131
|
+
//=> '/Users/sindresorhus'
|
|
132
|
+
})();
|
|
133
|
+
```
|
|
134
|
+
*/
|
|
135
|
+
(matcher: (directory: string) => (findUp.Match | Promise<findUp.Match>), options?: findUp.Options): Promise<string | undefined>;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
export = findUp;
|