reanimated-color-picker 3.0.3 → 3.0.4
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/lib/commonjs/colorKit/index.js +4 -4
- package/lib/commonjs/colorKit/index.js.map +1 -1
- package/lib/commonjs/utils.js +8 -7
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/module/colorKit/index.js +2 -2
- package/lib/module/colorKit/index.js.map +1 -1
- package/lib/module/utils.js +4 -4
- package/lib/module/utils.js.map +1 -1
- package/lib/src/colorKit/index.ts +2 -2
- package/lib/src/utils.tsx +4 -4
- package/lib/typescript/colorKit/index.d.ts +1 -1
- package/lib/typescript/colorKit/index.d.ts.map +1 -1
- package/lib/typescript/utils.d.ts +2 -2
- package/lib/typescript/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.colorKitUI =
|
|
7
|
-
exports.default = void 0;
|
|
6
|
+
exports.default = exports.colorKitUI = void 0;
|
|
8
7
|
// If you find yourself wondering why all of this is within a single function,
|
|
9
8
|
// the reason is that to execute each method on the UI thread, you must include the 'worklet' directive.
|
|
10
9
|
// Functions marked with this directive are transformed by the Reanimated Babel plugin
|
|
@@ -13,7 +12,7 @@ exports.default = void 0;
|
|
|
13
12
|
// this transformation can lead to a slow initial execution.
|
|
14
13
|
// To address this issue, I consolidated them into a single worklet function.
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
const colorKitUI = () => {
|
|
17
16
|
'worklet';
|
|
18
17
|
|
|
19
18
|
const NAMED_COLORS = {
|
|
@@ -2275,7 +2274,8 @@ function colorKitUI() {
|
|
|
2275
2274
|
randomHwbColor,
|
|
2276
2275
|
adjustContrast
|
|
2277
2276
|
};
|
|
2278
|
-
}
|
|
2277
|
+
};
|
|
2278
|
+
exports.colorKitUI = colorKitUI;
|
|
2279
2279
|
const colorKit = colorKitUI();
|
|
2280
2280
|
colorKit.runOnUI = colorKitUI;
|
|
2281
2281
|
var _default = exports.default = colorKit;
|