@amabeth/repeating-wheel-picker 1.0.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 -44
- 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 -177
- package/src/index.tsx +0 -507
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Text, type TextStyle, View, type ViewStyle } from "react-native";
|
|
2
|
+
import { useMemo, useState } from "react";
|
|
3
|
+
import { RepeatingWheelPicker,
|
|
4
|
+
type RepeatingWheelPickerProps,
|
|
5
|
+
} from "@amabeth/repeating-wheel-picker";
|
|
6
|
+
import styles, { Colors } from "../constants/styles";
|
|
7
|
+
|
|
8
|
+
export default function BooleanPicker() {
|
|
9
|
+
const [, setSelected] = useState<boolean>();
|
|
10
|
+
const data: boolean[] = [true, false];
|
|
11
|
+
|
|
12
|
+
const exampleProps = useMemo((): RepeatingWheelPickerProps<boolean> => ({
|
|
13
|
+
// mandatory
|
|
14
|
+
setSelected: setSelected,
|
|
15
|
+
initialIndex: 0,
|
|
16
|
+
data: data,
|
|
17
|
+
|
|
18
|
+
// optional
|
|
19
|
+
getLabel: (b: boolean) => b ? "Yes" : "No",
|
|
20
|
+
itemDisplayCount: 2,
|
|
21
|
+
|
|
22
|
+
containerVerticalPadding: 5,
|
|
23
|
+
containerHorizontalPadding: 20,
|
|
24
|
+
containerStyle: pickerContainerStyle
|
|
25
|
+
}), []);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<View style={tileStyle}>
|
|
29
|
+
<View style={rowStyle}>
|
|
30
|
+
<Text style={titleStyle}>Boolean picker:</Text>
|
|
31
|
+
<RepeatingWheelPicker<boolean> {...exampleProps} />
|
|
32
|
+
</View>
|
|
33
|
+
</View>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const tileStyle: ViewStyle = {
|
|
38
|
+
...styles.tile,
|
|
39
|
+
borderWidth: 0
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const rowStyle: ViewStyle = {
|
|
43
|
+
flexDirection: "row",
|
|
44
|
+
justifyContent: "flex-start",
|
|
45
|
+
alignItems: "center",
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const titleStyle: TextStyle = {
|
|
49
|
+
...styles.title,
|
|
50
|
+
marginRight: 20
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const pickerContainerStyle: ViewStyle = {
|
|
54
|
+
...styles.pickerContainer,
|
|
55
|
+
|
|
56
|
+
borderRadius: 30,
|
|
57
|
+
borderWidth: 1,
|
|
58
|
+
borderColor: "white",
|
|
59
|
+
backgroundColor: Colors.highlight
|
|
60
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Text, type TextStyle, TouchableOpacity, View, type ViewStyle } from "react-native";
|
|
2
|
+
import { useMemo, useState } from "react";
|
|
3
|
+
import { RepeatingWheelPicker,
|
|
4
|
+
type RepeatingWheelPickerProps,
|
|
5
|
+
} from "@amabeth/repeating-wheel-picker";
|
|
6
|
+
import styles, { Colors } from "../constants/styles";
|
|
7
|
+
|
|
8
|
+
export default function CustomTypePicker() {
|
|
9
|
+
const [pickerEnabled, setPickerEnabled] = useState(false);
|
|
10
|
+
const [, setSelected] = useState<FoodItem>();
|
|
11
|
+
const data: FoodItem[] = [
|
|
12
|
+
{
|
|
13
|
+
name: "Bread",
|
|
14
|
+
price: 1.23,
|
|
15
|
+
brand: "Best Bakery"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "Milk",
|
|
19
|
+
price: 1.43,
|
|
20
|
+
brand: "CowWow"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: "Apple",
|
|
24
|
+
price: 0.40,
|
|
25
|
+
brand: "Fruit Brand"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "Ice cream",
|
|
29
|
+
price: 4.99,
|
|
30
|
+
brand: "ColdIce"
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
const exampleProps = useMemo((): RepeatingWheelPickerProps<FoodItem> => ({
|
|
35
|
+
// mandatory
|
|
36
|
+
setSelected: setSelected,
|
|
37
|
+
initialIndex: 0,
|
|
38
|
+
data: data,
|
|
39
|
+
|
|
40
|
+
// optional
|
|
41
|
+
getLabel: (f: FoodItem) => `${f.name} (${f.price}€)`,
|
|
42
|
+
enabled: pickerEnabled,
|
|
43
|
+
itemDisplayCount: 3,
|
|
44
|
+
|
|
45
|
+
containerVerticalPadding: 5,
|
|
46
|
+
containerStyle: styles.pickerContainer,
|
|
47
|
+
gradientFadeColor: Colors.tile
|
|
48
|
+
}), [pickerEnabled]);
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<View style={styles.tile}>
|
|
52
|
+
<View style={rowStyle}>
|
|
53
|
+
<Text style={styles.title}>Custom type picker:</Text>
|
|
54
|
+
<View style={{flex: 1}}/>
|
|
55
|
+
<TouchableOpacity onPress={() => setPickerEnabled(!pickerEnabled)} style={buttonStyle}>
|
|
56
|
+
<Text style={styles.subtitle}>{pickerEnabled ? "disable" : "enable"}</Text>
|
|
57
|
+
</TouchableOpacity>
|
|
58
|
+
</View>
|
|
59
|
+
<RepeatingWheelPicker {...exampleProps} />
|
|
60
|
+
</View>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const rowStyle: ViewStyle = {
|
|
65
|
+
flexDirection: "row",
|
|
66
|
+
alignItems: "center"
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const buttonStyle: TextStyle = {
|
|
70
|
+
margin: 10,
|
|
71
|
+
paddingVertical: 5,
|
|
72
|
+
paddingHorizontal: 10,
|
|
73
|
+
backgroundColor: "transparent",
|
|
74
|
+
borderWidth: 0.7,
|
|
75
|
+
borderColor: Colors.text,
|
|
76
|
+
borderRadius: 15
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
type FoodItem = {
|
|
80
|
+
name: string,
|
|
81
|
+
price: number,
|
|
82
|
+
brand: string
|
|
83
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { Text, type TextStyle, View, type ViewStyle } from "react-native";
|
|
2
|
+
import { useMemo, useState } from "react";
|
|
3
|
+
import { RepeatingWheelPicker,
|
|
4
|
+
type RepeatingWheelPickerProps,
|
|
5
|
+
} from "@amabeth/repeating-wheel-picker";
|
|
6
|
+
import styles, { Colors } from "../constants/styles";
|
|
7
|
+
import useComponentHeight from "../hooks/useComponentHeight";
|
|
8
|
+
|
|
9
|
+
export default function NumberPicker() {
|
|
10
|
+
const [selected, setSelected] = useState<number>();
|
|
11
|
+
const data: number[] = Array.from({length: 123}, (_, i) => i);
|
|
12
|
+
const [height, onLayout] = useComponentHeight();
|
|
13
|
+
|
|
14
|
+
const exampleProps = useMemo((): RepeatingWheelPickerProps<number> => ({
|
|
15
|
+
// mandatory
|
|
16
|
+
setSelected: setSelected,
|
|
17
|
+
initialIndex: 30,
|
|
18
|
+
data: data,
|
|
19
|
+
|
|
20
|
+
// optional
|
|
21
|
+
itemDisplayCount: 5,
|
|
22
|
+
|
|
23
|
+
containerOnLayout: onLayout,
|
|
24
|
+
|
|
25
|
+
containerStyle: rightColumnStyle,
|
|
26
|
+
itemTextStyle: pickerItemTextStyle,
|
|
27
|
+
gradientFadeColor: Colors.tile
|
|
28
|
+
}), [onLayout]);
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<View style={styles.tile}>
|
|
32
|
+
<View style={rowStyle}>
|
|
33
|
+
<View style={leftColumnStyle(height)}>
|
|
34
|
+
<Text style={styles.subtitle}>Number picker: </Text>
|
|
35
|
+
</View>
|
|
36
|
+
<RepeatingWheelPicker<number> {...exampleProps} />
|
|
37
|
+
</View>
|
|
38
|
+
<Text style={selectedStyle}>Selected: {selected}</Text>
|
|
39
|
+
</View>
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const rowStyle: ViewStyle = {
|
|
44
|
+
flexDirection: "row",
|
|
45
|
+
justifyContent: "center"
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const columnStyle: ViewStyle = {
|
|
49
|
+
...rowStyle,
|
|
50
|
+
width: "50%",
|
|
51
|
+
marginHorizontal: 3
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const leftColumnStyle = (height: number): ViewStyle => ({
|
|
55
|
+
...columnStyle,
|
|
56
|
+
height: height,
|
|
57
|
+
justifyContent: "flex-end",
|
|
58
|
+
alignItems: "center"
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const rightColumnStyle: ViewStyle = {
|
|
62
|
+
...styles.pickerContainer,
|
|
63
|
+
...columnStyle
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const pickerItemTextStyle: TextStyle = {
|
|
67
|
+
...styles.text,
|
|
68
|
+
textAlign: "left"
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
const selectedStyle: TextStyle ={
|
|
72
|
+
...styles.text,
|
|
73
|
+
fontStyle: "italic",
|
|
74
|
+
textAlign: "right"
|
|
75
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Text, type TextStyle, View, type ViewStyle } from "react-native";
|
|
2
|
+
import { useMemo, useState } from "react";
|
|
3
|
+
import { RepeatingWheelPicker,
|
|
4
|
+
type RepeatingWheelPickerProps,
|
|
5
|
+
} from "@amabeth/repeating-wheel-picker";
|
|
6
|
+
import styles, { Colors } from "../constants/styles";
|
|
7
|
+
|
|
8
|
+
export default function StringPicker() {
|
|
9
|
+
const [favoriteWord, setFavoriteWord] = useState<string>();
|
|
10
|
+
const data: string[] = ["art", "bus", "cache", "dart", "end", "fun", "grass", "hug"];
|
|
11
|
+
|
|
12
|
+
const exampleProps = useMemo((): RepeatingWheelPickerProps<string> => ({
|
|
13
|
+
// mandatory
|
|
14
|
+
setSelected: setFavoriteWord,
|
|
15
|
+
initialIndex: 7,
|
|
16
|
+
data: data,
|
|
17
|
+
|
|
18
|
+
// optional
|
|
19
|
+
itemDisplayCount: 6,
|
|
20
|
+
itemHeight: 25,
|
|
21
|
+
|
|
22
|
+
containerStyle: pickerContainerStyle,
|
|
23
|
+
|
|
24
|
+
gradientFadeColor: Colors.tile
|
|
25
|
+
}), []);
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<View style={tileStyle}>
|
|
29
|
+
<View style={rowStyle}>
|
|
30
|
+
<Text style={titleStyle}>String picker:</Text>
|
|
31
|
+
<RepeatingWheelPicker<string> {...exampleProps} />
|
|
32
|
+
</View>
|
|
33
|
+
<Text style={selectedStyle}>Selected: {favoriteWord}</Text>
|
|
34
|
+
</View>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const tileStyle: ViewStyle = {
|
|
39
|
+
...styles.tile,
|
|
40
|
+
paddingVertical: 0,
|
|
41
|
+
paddingBottom: 10
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const rowStyle: ViewStyle = {
|
|
45
|
+
flexDirection: "row",
|
|
46
|
+
alignItems: "center"
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const titleStyle: TextStyle ={
|
|
50
|
+
...styles.title,
|
|
51
|
+
flex: 1,
|
|
52
|
+
textAlign: "left"
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const pickerContainerStyle: ViewStyle = {
|
|
56
|
+
...styles.pickerContainer,
|
|
57
|
+
flex: 1
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const selectedStyle: TextStyle ={
|
|
61
|
+
...styles.text,
|
|
62
|
+
fontStyle: "italic",
|
|
63
|
+
textAlign: "right"
|
|
64
|
+
}
|
package/lib/module/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import { useEffect, useMemo, useRef, useState } from "react";
|
|
|
4
4
|
import { Text, View, VirtualizedList } from "react-native";
|
|
5
5
|
import { LinearGradient } from "expo-linear-gradient";
|
|
6
6
|
|
|
7
|
-
/**
|
|
8
|
-
* Provides a wheel picker with repeating data that can be infinitely scrolled.
|
|
9
|
-
*
|
|
10
|
-
* @param properties configuration of the wheel picker
|
|
7
|
+
/**
|
|
8
|
+
* Provides a wheel picker with repeating data that can be infinitely scrolled.
|
|
9
|
+
*
|
|
10
|
+
* @param properties configuration of the wheel picker
|
|
11
11
|
*/
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
export function RepeatingWheelPicker(properties) {
|
|
@@ -229,7 +229,7 @@ function InvalidPropertiesError(propertyName, propertyValue, violatedConstraint)
|
|
|
229
229
|
return Error(`Value "${propertyValue}" is invalid for property "${propertyName}": ${violatedConstraint}`);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
234
|
*/
|
|
235
235
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useMemo","useRef","useState","Text","View","VirtualizedList","LinearGradient","jsx","_jsx","jsxs","_jsxs","RepeatingWheelPicker","properties","props","withDefaults","dataMultiplier","Math","max","round","data","length","indexDiffTopToCentered","floor","itemDisplayCount","offsets","getOffsets","itemHeight","containerVerticalPadding","current","setCurrent","initialIndex","listRef","selectedElement","undefined","setSelected","onLayout","containerOnLayout","style","containerStyle","height","children","ref","scrollEnabled","enabled","getItemCount","initialScrollIndex","initialNumToRender","windowSize","renderItem","item","index","Item","getItem","_","getItemLayout","offset","keyExtractor","decelerationRate","snapToOffsets","onMomentumScrollEnd","event","nativeEvent","contentOffset","y","showsVerticalScrollIndicator","flex","width","borderRadius","paddingVertical","paddingHorizontal","containerHorizontalPadding","enableGradient","backgroundColor","position","FrontGradient","gradientFadeColor","justifyContent","alignContent","itemContainerStyle","textAlign","itemTextStyle","getLabel","colors","dataLength","i","itemOffset","verticalPadding","innerOffset","currentTopIndex","currentSection","targetSection","targetTopIndex","targetOffset","scrollToOffset","animated","defaultBackgroundColor","defaultTextColor","defaultTextSize","validateProps","t","fontSize","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","color","InvalidPropertiesError","String","Number","isInteger","propertyName","propertyValue","violatedConstraint","Error"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["useEffect","useMemo","useRef","useState","Text","View","VirtualizedList","LinearGradient","jsx","_jsx","jsxs","_jsxs","RepeatingWheelPicker","properties","props","withDefaults","dataMultiplier","Math","max","round","data","length","indexDiffTopToCentered","floor","itemDisplayCount","offsets","getOffsets","itemHeight","containerVerticalPadding","current","setCurrent","initialIndex","listRef","selectedElement","undefined","setSelected","onLayout","containerOnLayout","style","containerStyle","height","children","ref","scrollEnabled","enabled","getItemCount","initialScrollIndex","initialNumToRender","windowSize","renderItem","item","index","Item","getItem","_","getItemLayout","offset","keyExtractor","decelerationRate","snapToOffsets","onMomentumScrollEnd","event","nativeEvent","contentOffset","y","showsVerticalScrollIndicator","flex","width","borderRadius","paddingVertical","paddingHorizontal","containerHorizontalPadding","enableGradient","backgroundColor","position","FrontGradient","gradientFadeColor","justifyContent","alignContent","itemContainerStyle","textAlign","itemTextStyle","getLabel","colors","dataLength","i","itemOffset","verticalPadding","innerOffset","currentTopIndex","currentSection","targetSection","targetTopIndex","targetOffset","scrollToOffset","animated","defaultBackgroundColor","defaultTextColor","defaultTextSize","validateProps","t","fontSize","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","color","InvalidPropertiesError","String","Number","isInteger","propertyName","propertyValue","violatedConstraint","Error"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;AAAA,SAAyBA,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAC5E,SAIEC,IAAI,EAEJC,IAAI,EAEJC,eAAe,QACV,cAAc;AACrB,SAASC,cAAc,QAAQ,sBAAsB;;AAErD;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKA,OAAO,SAASC,oBAAoBA,CAClCC,UAAwC,EACxC;EACA;EACA,MAAMC,KAAK,GAAGb,OAAO,CAAC,MAAMc,YAAY,CAACF,UAAU,CAAC,EAAE,CAACA,UAAU,CAAC,CAAC;EACnE;EACA,MAAMG,cAAc,GAAGf,OAAO,CAC5B,MAAMgB,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,KAAK,CAAC,EAAE,GAAGL,KAAK,CAAC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