reanimated-color-picker 3.0.2 → 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.
@@ -3,8 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.colorKitUI = 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
- function colorKitUI() {
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;