Skip to content

Commit f4f4ba0

Browse files
committed
Fix conflict issue with color native lib name
1 parent 560f1f1 commit f4f4ba0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/ios/reactnativeuilib/keyboardinput/lninterpolation/Color+Interpolation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/**
1919
Interpolate using the LAB color space for optimal quality. This constant is equal to @c LNUseDefaultInterpolationBehavior.
2020
*/
21-
extern LNInterpolationBehavior const LNInterpolationBehaviorUseLABColorSpace;
21+
extern LNInterpolationBehavior const RNUIInterpolationBehaviorUseLABColorSpace;
2222

2323
/**
2424
Interpolate using the RGB color space.
2525
*/
26-
extern LNInterpolationBehavior const LNInterpolationBehaviorUseRGBColorSpace;
26+
extern LNInterpolationBehavior const RNUIInterpolationBehaviorUseRGBColorSpace;
2727

2828
/**
2929
Interpolates between colors.

lib/ios/reactnativeuilib/keyboardinput/lninterpolation/Color+Interpolation.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#define SWAP(x, y) do { __typeof(x) __ZZZZ__SWAP = x; x = y; y = __ZZZZ__SWAP; } while(0)
1919

2020
//Same value as LNInterpolationBehaviorUseDefault
21-
LNInterpolationBehavior const LNInterpolationBehaviorUseLABColorSpace = @"LNInterpolationBehaviorUseDefault";
22-
LNInterpolationBehavior const LNInterpolationBehaviorUseRGBColorSpace = @"LNInterpolationBehaviorUseRGB";
21+
LNInterpolationBehavior const RNUIInterpolationBehaviorUseLABColorSpace = @"LNInterpolationBehaviorUseDefault";
22+
LNInterpolationBehavior const RNUIInterpolationBehaviorUseRGBColorSpace = @"LNInterpolationBehaviorUseRGB";
2323

2424
extern double LNLinearInterpolate(double from, double to, double p);
2525

@@ -152,7 +152,7 @@ - (instancetype)interpolateToValue:(id)toValue progress:(double)p behavior:(LNIn
152152
return toValue;
153153
}
154154

155-
return LNInterpolateColor(self, toValue, p, behavior == LNInterpolationBehaviorUseRGBColorSpace ? LNRGBComponentsFromColor : LNLabComponentsFromColor, behavior == LNInterpolationBehaviorUseRGBColorSpace ? LNColorFromRGBComponents : LNColorFromLabComponents);
155+
return LNInterpolateColor(self, toValue, p, behavior == RNUIInterpolationBehaviorUseRGBColorSpace ? LNRGBComponentsFromColor : LNLabComponentsFromColor, behavior == RNUIInterpolationBehaviorUseRGBColorSpace ? LNColorFromRGBComponents : LNColorFromLabComponents);
156156
}
157157

158158
@end

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "uilib-native",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"homepage": "https://github.com/wix/react-native-ui-lib",
55
"description": "uilib native components (separated from js components)",
66
"main": "components/index.js",

0 commit comments

Comments
 (0)