rn-css 1.4.2 → 1.5.1

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This is basically [styled-components](https://github.com/styled-components/styled-components) with a much better support for React-Native, and some awesome additional features. You can check the docs of [styled-components](https://github.com/styled-components/styled-components) for more details about the basic API. I'll focus here on the differences.
4
4
 
5
+ **Current version: 1.5** [See the Changelog](./CHANGELOG.md)
6
+
5
7
  ---
6
8
 
7
9
  ## Purpose
@@ -331,6 +333,14 @@ const View = styled.View`
331
333
 
332
334
  ---
333
335
 
336
+ ## Theming:
337
+
338
+ To match the API of styled-components, we offer the same abilities for theming [See the documentation](https://styled-components.com/docs/advanced).
339
+
340
+ This relies on the [SharedValue](#shared-value) context. This means that you cannot use the Shared Value system **and** this theming système. Pick the one that best suits your needs.
341
+
342
+ ---
343
+
334
344
  ## Coming later:
335
345
 
336
346
  linear-gradient, background-repeat, transitions, animations
@@ -9,7 +9,7 @@ const convertStyle = (rnStyle, units) => {
9
9
  ['width', 'height'].forEach(key => {
10
10
  if (!units[key] && rnStyle[key]) {
11
11
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
12
- const converted = convertUnits_1.convertValue(key, rnStyle[key], units);
12
+ const converted = (0, convertUnits_1.convertValue)(key, rnStyle[key], units);
13
13
  if (!Number.isNaN(converted))
14
14
  units[key] = converted;
15
15
  }
@@ -21,34 +21,34 @@ const convertStyle = (rnStyle, units) => {
21
21
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
22
22
  convertedStyle.transform = rnStyle.transform.map(transformation => {
23
23
  const result = {};
24
- Object.keys(transformation).forEach(k => (result[k] = convertUnits_1.convertValue(k, transformation[k], units)));
24
+ Object.keys(transformation).forEach(k => (result[k] = (0, convertUnits_1.convertValue)(k, transformation[k], units)));
25
25
  return result;
26
26
  });
27
27
  }
28
28
  else if (key === 'shadowOffset' && rnStyle.shadowOffset) {
29
29
  convertedStyle.shadowOffset = {
30
30
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
31
- width: convertUnits_1.convertValue(key, rnStyle.shadowOffset.width || '0', units),
31
+ width: (0, convertUnits_1.convertValue)(key, rnStyle.shadowOffset.width || '0', units),
32
32
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
33
- height: convertUnits_1.convertValue(key, rnStyle.shadowOffset.height || '0', units)
33
+ height: (0, convertUnits_1.convertValue)(key, rnStyle.shadowOffset.height || '0', units)
34
34
  };
35
35
  }
36
36
  else if (key === 'textShadowOffset' && rnStyle.textShadowOffset) {
37
37
  convertedStyle.textShadowOffset = {
38
38
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
39
- width: convertUnits_1.convertValue(key, rnStyle.textShadowOffset.width || '0', units),
39
+ width: (0, convertUnits_1.convertValue)(key, rnStyle.textShadowOffset.width || '0', units),
40
40
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
41
- height: convertUnits_1.convertValue(key, rnStyle.textShadowOffset.height || '0', units)
41
+ height: (0, convertUnits_1.convertValue)(key, rnStyle.textShadowOffset.height || '0', units)
42
42
  };
43
43
  }
44
- // Font family should not be transformed
45
- else if (key === 'fontFamily') {
44
+ // Font family should not be transformed (same as cursor for web in case of base64 value)
45
+ else if (['cursor', 'fontFamily'].includes(key)) {
46
46
  convertedStyle[key] = value;
47
47
  }
48
48
  else {
49
49
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
50
50
  // @ts-ignore
51
- convertedStyle[key] = convertUnits_1.convertValue(key, value, units);
51
+ convertedStyle[key] = (0, convertUnits_1.convertValue)(key, value, units);
52
52
  }
53
53
  });
54
54
  return convertedStyle;
@@ -53,11 +53,13 @@ function convertValue(key, value, units) {
53
53
  });
54
54
  // We handle extra calculations (calc, min, max, parsing...)
55
55
  if (convertedValue.startsWith('calc('))
56
- return maths_1.calculate(convertedValue.substring(4)); // remove calc. We can keep the parenthesis
56
+ return (0, maths_1.calculate)(convertedValue.substring(4)); // remove calc. We can keep the parenthesis
57
57
  else if (convertedValue.startsWith('max('))
58
- return maths_1.max(convertedValue.substring(4, convertedValue.length - 1)); // Remove max()
58
+ return (0, maths_1.max)(convertedValue.substring(4, convertedValue.length - 1)); // Remove max()
59
59
  else if (convertedValue.startsWith('min('))
60
- return maths_1.min(convertedValue.substring(4, convertedValue.length - 1)); // remove min()
60
+ return (0, maths_1.min)(convertedValue.substring(4, convertedValue.length - 1)); // remove min()
61
+ else if (key === 'fontWeight')
62
+ return convertedValue; // fontWeight must be a string even when it is an integer value.
61
63
  else if (parseFloat(convertedValue) + '' === convertedValue)
62
64
  return parseFloat(convertedValue);
63
65
  else
@@ -18,7 +18,7 @@ function cssToStyle(css) {
18
18
  const result = {};
19
19
  // Find media queries
20
20
  const cssWithoutMediaQueries = css.replace(/@media(.*?){[^{}]*}/gmis, res => {
21
- const { css, isValid } = mediaQueries_1.createMedia(res);
21
+ const { css, isValid } = (0, mediaQueries_1.createMedia)(res);
22
22
  const style = cssChunkToStyle(css);
23
23
  const mediaQuery = (context) => isValid(context) && style;
24
24
  if (!result.media)
@@ -56,7 +56,7 @@ function cssToRNStyle(css, units = {}) {
56
56
  ...units
57
57
  };
58
58
  const rnStyle = cssChunkToStyle(css);
59
- return convertStyle_1.default(rnStyle, finalUnits);
59
+ return (0, convertStyle_1.default)(rnStyle, finalUnits);
60
60
  }
61
61
  exports.cssToRNStyle = cssToRNStyle;
62
62
  function cssChunkToStyle(css) {
@@ -74,43 +74,43 @@ function cssChunkToStyle(css) {
74
74
  case 'borderLeft':
75
75
  case 'borderRight':
76
76
  case 'borderBottom':
77
- Object.assign(result, convert_1.border(key, value));
77
+ Object.assign(result, (0, convert_1.border)(key, value));
78
78
  break;
79
79
  case 'borderWidth':
80
- Object.assign(result, convert_1.sideValue('border', value, 'Width'));
80
+ Object.assign(result, (0, convert_1.sideValue)('border', value, 'Width'));
81
81
  break;
82
82
  case 'background':
83
83
  Object.assign(result, { backgroundColor: value });
84
84
  break;
85
85
  case 'padding':
86
86
  case 'margin':
87
- Object.assign(result, convert_1.sideValue(key, value));
87
+ Object.assign(result, (0, convert_1.sideValue)(key, value));
88
88
  break;
89
89
  case 'borderRadius':
90
- Object.assign(result, convert_1.cornerValue('border', value, 'Radius'));
90
+ Object.assign(result, (0, convert_1.cornerValue)('border', value, 'Radius'));
91
91
  break;
92
92
  case 'font':
93
- Object.assign(result, convert_1.font(value));
93
+ Object.assign(result, (0, convert_1.font)(value));
94
94
  break;
95
95
  case 'textDecoration':
96
- Object.assign(result, convert_1.textDecoration(value));
96
+ Object.assign(result, (0, convert_1.textDecoration)(value));
97
97
  break;
98
98
  case 'placeContent':
99
- Object.assign(result, convert_1.placeContent(value));
99
+ Object.assign(result, (0, convert_1.placeContent)(value));
100
100
  break;
101
101
  case 'flex':
102
- Object.assign(result, convert_1.flex(value));
102
+ Object.assign(result, (0, convert_1.flex)(value));
103
103
  break;
104
104
  case 'flexFlow':
105
- Object.assign(result, convert_1.flexFlow(value));
105
+ Object.assign(result, (0, convert_1.flexFlow)(value));
106
106
  break;
107
107
  case 'transform':
108
- Object.assign(result, convert_1.transform(value));
108
+ Object.assign(result, (0, convert_1.transform)(value));
109
109
  break;
110
110
  case 'boxShadow':
111
111
  case 'textShadow':
112
112
  // We need to replace boxShadow by shadow
113
- Object.assign(result, convert_1.shadow(key === 'boxShadow' ? 'shadow' : key, value));
113
+ Object.assign(result, (0, convert_1.shadow)(key === 'boxShadow' ? 'shadow' : key, value));
114
114
  break;
115
115
  // Other keys don't require any special treatment
116
116
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -54,7 +54,7 @@ function convertAnyValue(key, value, units) {
54
54
  dppx: 'px',
55
55
  x: 'px'
56
56
  };
57
- const [num, unit] = convertUnits_1.parseValue(value);
57
+ const [num, unit] = (0, convertUnits_1.parseValue)(value);
58
58
  return num + densityUnitsEquivalence[unit];
59
59
  }
60
60
  else if (key === 'deviceAspectRatio' || key === 'aspectRatio') {
@@ -62,7 +62,7 @@ function convertAnyValue(key, value, units) {
62
62
  const [w, h] = value.split('/').map(v => parseInt(v, 10));
63
63
  return w / h;
64
64
  }
65
- return convertUnits_1.convertValue(key, value, units);
65
+ return (0, convertUnits_1.convertValue)(key, value, units);
66
66
  }
67
67
  /** Check if a constraint is respected by the provided context */
68
68
  function evaluateConstraint(constraint, context) {
package/dist/features.js CHANGED
@@ -14,7 +14,7 @@ exports.FontSizeContext = react_1.default.createContext(16);
14
14
  exports.zIndexContext = react_1.default.createContext((_zIndex) => { });
15
15
  /** HOC that will apply the screen size to the styles defined with vmin, vmax, vw, vh units, and handle media queries constraints */
16
16
  const useScreenSize = () => {
17
- const { width, height } = react_native_1.useWindowDimensions();
17
+ const { width, height } = (0, react_native_1.useWindowDimensions)();
18
18
  return { vw: width / 100, vh: height / 100, vmin: Math.min(width, height) / 100, vmax: Math.max(width, height) / 100 };
19
19
  };
20
20
  exports.useScreenSize = useScreenSize;
@@ -37,7 +37,7 @@ exports.useHover = useHover;
37
37
  /** HOC that will apply the style provided in the media queries */
38
38
  const useMediaQuery = (media, units) => {
39
39
  if (media) {
40
- const context = mediaQueries_1.createContext(units);
40
+ const context = (0, mediaQueries_1.createContext)(units);
41
41
  const mediaStyles = media.map(m => m(context)).filter(m => m);
42
42
  if (!mediaStyles.length)
43
43
  return;
@@ -59,9 +59,8 @@ const useLayout = (onLayout) => {
59
59
  if (unmounted.current)
60
60
  return;
61
61
  const { width, height } = event.nativeEvent.layout;
62
- if (width !== layout.width || height !== layout.height)
63
- setLayout({ width, height });
64
- }, [onLayout, layout.width, layout.height]);
62
+ setLayout(layout => layout.width === width && layout.height === height ? layout : { width, height });
63
+ }, [onLayout]);
65
64
  return { onLayout: updateLayout, ...layout };
66
65
  };
67
66
  exports.useLayout = useLayout;
@@ -70,7 +69,7 @@ const useFontSize = (setFontSize, rem = 16) => {
70
69
  const em = react_1.default.useContext(exports.FontSizeContext);
71
70
  if (!setFontSize)
72
71
  return { em };
73
- const [fontSize, fontUnit] = convertUnits_1.parseValue(setFontSize);
72
+ const [fontSize, fontUnit] = (0, convertUnits_1.parseValue)(setFontSize);
74
73
  const isRelative = ['rem', 'em', '%'].includes(fontUnit || '');
75
74
  if (isRelative) {
76
75
  const newSize = fontUnit === 'em' ? em * fontSize
package/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import * as RN from 'react-native';
3
3
  export { cssToRNStyle } from './cssToRN';
4
4
  export { FontSizeContext } from './features';
5
5
  export { SharedValue } from './styleComponent';
6
+ export * from './useTheme';
6
7
  declare const styled: {
7
8
  <T>(Component: React.ComponentType<T>): {
8
9
  <S>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S & T & {
@@ -200,39 +201,11 @@ declare const styled: {
200
201
  ref?: React.Ref<any> | undefined;
201
202
  }>;
202
203
  };
203
- ListView: {
204
- <S_14>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_14 & RN.ListViewProps & {
205
- rnCSS?: string | undefined;
206
- shared: unknown;
207
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ListViewProps & S_14 & {
208
- rnCSS?: `${string};` | undefined;
209
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
210
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
211
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
212
- children?: React.ReactNode;
213
- style?: any;
214
- } & {
215
- ref?: React.Ref<any> | undefined;
216
- }>;
217
- attrs<S_15>(opts: Partial<S_15 & RN.ListViewProps> | ((props: S_15 & RN.ListViewProps) => Partial<S_15 & RN.ListViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_15 & RN.ListViewProps & {
218
- rnCSS?: string | undefined;
219
- shared: unknown;
220
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ListViewProps | S_15) & {
221
- rnCSS?: `${string};` | undefined;
222
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
223
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
224
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
225
- children?: React.ReactNode;
226
- style?: any;
227
- } & {
228
- ref?: React.Ref<any> | undefined;
229
- }>;
230
- };
231
204
  Modal: {
232
- <S_16>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_16 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & {
205
+ <S_14>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_14 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & {
233
206
  rnCSS?: string | undefined;
234
207
  shared: unknown;
235
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & S_16 & {
208
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & S_14 & {
236
209
  rnCSS?: `${string};` | undefined;
237
210
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
238
211
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -242,10 +215,10 @@ declare const styled: {
242
215
  } & {
243
216
  ref?: React.Ref<any> | undefined;
244
217
  }>;
245
- attrs<S_17>(opts: Partial<S_17 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps> | ((props: S_17 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps) => Partial<S_17 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_17 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & {
218
+ attrs<S_15>(opts: Partial<S_15 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps> | ((props: S_15 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps) => Partial<S_15 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_15 & RN.ModalBaseProps & RN.ModalPropsIOS & RN.ModalPropsAndroid & RN.ViewProps & {
246
219
  rnCSS?: string | undefined;
247
220
  shared: unknown;
248
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ModalProps | S_17) & {
221
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ModalProps | S_15) & {
249
222
  rnCSS?: `${string};` | undefined;
250
223
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
251
224
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -257,10 +230,10 @@ declare const styled: {
257
230
  }>;
258
231
  };
259
232
  NavigatorIOS: {
260
- <S_18>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_18 & RN.NavigatorIOSProps & {
233
+ <S_16>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_16 & RN.NavigatorIOSProps & {
261
234
  rnCSS?: string | undefined;
262
235
  shared: unknown;
263
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.NavigatorIOSProps & S_18 & {
236
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.NavigatorIOSProps & S_16 & {
264
237
  rnCSS?: `${string};` | undefined;
265
238
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
266
239
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -270,10 +243,10 @@ declare const styled: {
270
243
  } & {
271
244
  ref?: React.Ref<any> | undefined;
272
245
  }>;
273
- attrs<S_19>(opts: Partial<S_19 & RN.NavigatorIOSProps> | ((props: S_19 & RN.NavigatorIOSProps) => Partial<S_19 & RN.NavigatorIOSProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_19 & RN.NavigatorIOSProps & {
246
+ attrs<S_17>(opts: Partial<S_17 & RN.NavigatorIOSProps> | ((props: S_17 & RN.NavigatorIOSProps) => Partial<S_17 & RN.NavigatorIOSProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_17 & RN.NavigatorIOSProps & {
274
247
  rnCSS?: string | undefined;
275
248
  shared: unknown;
276
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.NavigatorIOSProps | S_19) & {
249
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.NavigatorIOSProps | S_17) & {
277
250
  rnCSS?: `${string};` | undefined;
278
251
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
279
252
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -285,10 +258,10 @@ declare const styled: {
285
258
  }>;
286
259
  };
287
260
  ScrollView: {
288
- <S_20>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_20 & RN.ScrollViewProps & {
261
+ <S_18>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_18 & RN.ScrollViewProps & {
289
262
  rnCSS?: string | undefined;
290
263
  shared: unknown;
291
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ScrollViewProps & S_20 & {
264
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ScrollViewProps & S_18 & {
292
265
  rnCSS?: `${string};` | undefined;
293
266
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
294
267
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -298,10 +271,10 @@ declare const styled: {
298
271
  } & {
299
272
  ref?: React.Ref<any> | undefined;
300
273
  }>;
301
- attrs<S_21>(opts: Partial<S_21 & RN.ScrollViewProps> | ((props: S_21 & RN.ScrollViewProps) => Partial<S_21 & RN.ScrollViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_21 & RN.ScrollViewProps & {
274
+ attrs<S_19>(opts: Partial<S_19 & RN.ScrollViewProps> | ((props: S_19 & RN.ScrollViewProps) => Partial<S_19 & RN.ScrollViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_19 & RN.ScrollViewProps & {
302
275
  rnCSS?: string | undefined;
303
276
  shared: unknown;
304
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ScrollViewProps | S_21) & {
277
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ScrollViewProps | S_19) & {
305
278
  rnCSS?: `${string};` | undefined;
306
279
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
307
280
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -313,10 +286,10 @@ declare const styled: {
313
286
  }>;
314
287
  };
315
288
  SnapshotViewIOS: {
316
- <S_22>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_22 & RN.SnapshotViewIOSProps & {
289
+ <S_20>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_20 & RN.SnapshotViewIOSProps & {
317
290
  rnCSS?: string | undefined;
318
291
  shared: unknown;
319
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.SnapshotViewIOSProps & S_22 & {
292
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.SnapshotViewIOSProps & S_20 & {
320
293
  rnCSS?: `${string};` | undefined;
321
294
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
322
295
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -326,10 +299,10 @@ declare const styled: {
326
299
  } & {
327
300
  ref?: React.Ref<any> | undefined;
328
301
  }>;
329
- attrs<S_23>(opts: Partial<S_23 & RN.SnapshotViewIOSProps> | ((props: S_23 & RN.SnapshotViewIOSProps) => Partial<S_23 & RN.SnapshotViewIOSProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_23 & RN.SnapshotViewIOSProps & {
302
+ attrs<S_21>(opts: Partial<S_21 & RN.SnapshotViewIOSProps> | ((props: S_21 & RN.SnapshotViewIOSProps) => Partial<S_21 & RN.SnapshotViewIOSProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_21 & RN.SnapshotViewIOSProps & {
330
303
  rnCSS?: string | undefined;
331
304
  shared: unknown;
332
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.SnapshotViewIOSProps | S_23) & {
305
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.SnapshotViewIOSProps | S_21) & {
333
306
  rnCSS?: `${string};` | undefined;
334
307
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
335
308
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -341,10 +314,10 @@ declare const styled: {
341
314
  }>;
342
315
  };
343
316
  Switch: {
344
- <S_24>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_24 & RN.SwitchProps & {
317
+ <S_22>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_22 & RN.SwitchProps & {
345
318
  rnCSS?: string | undefined;
346
319
  shared: unknown;
347
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.SwitchProps & S_24 & {
320
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.SwitchProps & S_22 & {
348
321
  rnCSS?: `${string};` | undefined;
349
322
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
350
323
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -354,10 +327,10 @@ declare const styled: {
354
327
  } & {
355
328
  ref?: React.Ref<any> | undefined;
356
329
  }>;
357
- attrs<S_25>(opts: Partial<S_25 & RN.SwitchProps> | ((props: S_25 & RN.SwitchProps) => Partial<S_25 & RN.SwitchProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_25 & RN.SwitchProps & {
330
+ attrs<S_23>(opts: Partial<S_23 & RN.SwitchProps> | ((props: S_23 & RN.SwitchProps) => Partial<S_23 & RN.SwitchProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_23 & RN.SwitchProps & {
358
331
  rnCSS?: string | undefined;
359
332
  shared: unknown;
360
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.SwitchProps | S_25) & {
333
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.SwitchProps | S_23) & {
361
334
  rnCSS?: `${string};` | undefined;
362
335
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
363
336
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -369,10 +342,10 @@ declare const styled: {
369
342
  }>;
370
343
  };
371
344
  RecyclerViewBackedScrollView: {
372
- <S_26>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_26 & RN.RecyclerViewBackedScrollViewProps & {
345
+ <S_24>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_24 & RN.RecyclerViewBackedScrollViewProps & {
373
346
  rnCSS?: string | undefined;
374
347
  shared: unknown;
375
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.RecyclerViewBackedScrollViewProps & S_26 & {
348
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.RecyclerViewBackedScrollViewProps & S_24 & {
376
349
  rnCSS?: `${string};` | undefined;
377
350
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
378
351
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -382,10 +355,10 @@ declare const styled: {
382
355
  } & {
383
356
  ref?: React.Ref<any> | undefined;
384
357
  }>;
385
- attrs<S_27>(opts: Partial<S_27 & RN.RecyclerViewBackedScrollViewProps> | ((props: S_27 & RN.RecyclerViewBackedScrollViewProps) => Partial<S_27 & RN.RecyclerViewBackedScrollViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_27 & RN.RecyclerViewBackedScrollViewProps & {
358
+ attrs<S_25>(opts: Partial<S_25 & RN.RecyclerViewBackedScrollViewProps> | ((props: S_25 & RN.RecyclerViewBackedScrollViewProps) => Partial<S_25 & RN.RecyclerViewBackedScrollViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_25 & RN.RecyclerViewBackedScrollViewProps & {
386
359
  rnCSS?: string | undefined;
387
360
  shared: unknown;
388
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.RecyclerViewBackedScrollViewProps | S_27) & {
361
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.RecyclerViewBackedScrollViewProps | S_25) & {
389
362
  rnCSS?: `${string};` | undefined;
390
363
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
391
364
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -397,10 +370,10 @@ declare const styled: {
397
370
  }>;
398
371
  };
399
372
  RefreshControl: {
400
- <S_28>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_28 & RN.RefreshControlProps & {
373
+ <S_26>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_26 & RN.RefreshControlProps & {
401
374
  rnCSS?: string | undefined;
402
375
  shared: unknown;
403
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.RefreshControlProps & S_28 & {
376
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.RefreshControlProps & S_26 & {
404
377
  rnCSS?: `${string};` | undefined;
405
378
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
406
379
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -410,10 +383,10 @@ declare const styled: {
410
383
  } & {
411
384
  ref?: React.Ref<any> | undefined;
412
385
  }>;
413
- attrs<S_29>(opts: Partial<S_29 & RN.RefreshControlProps> | ((props: S_29 & RN.RefreshControlProps) => Partial<S_29 & RN.RefreshControlProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_29 & RN.RefreshControlProps & {
386
+ attrs<S_27>(opts: Partial<S_27 & RN.RefreshControlProps> | ((props: S_27 & RN.RefreshControlProps) => Partial<S_27 & RN.RefreshControlProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_27 & RN.RefreshControlProps & {
414
387
  rnCSS?: string | undefined;
415
388
  shared: unknown;
416
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.RefreshControlProps | S_29) & {
389
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.RefreshControlProps | S_27) & {
417
390
  rnCSS?: `${string};` | undefined;
418
391
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
419
392
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -425,10 +398,10 @@ declare const styled: {
425
398
  }>;
426
399
  };
427
400
  SafeAreaView: {
428
- <S_30>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_30 & RN.ViewProps & {
401
+ <S_28>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_28 & RN.ViewProps & {
429
402
  rnCSS?: string | undefined;
430
403
  shared: unknown;
431
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ViewProps & S_30 & {
404
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ViewProps & S_28 & {
432
405
  rnCSS?: `${string};` | undefined;
433
406
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
434
407
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -438,10 +411,10 @@ declare const styled: {
438
411
  } & {
439
412
  ref?: React.Ref<any> | undefined;
440
413
  }>;
441
- attrs<S_31>(opts: Partial<S_31 & RN.ViewProps> | ((props: S_31 & RN.ViewProps) => Partial<S_31 & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_31 & RN.ViewProps & {
414
+ attrs<S_29>(opts: Partial<S_29 & RN.ViewProps> | ((props: S_29 & RN.ViewProps) => Partial<S_29 & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_29 & RN.ViewProps & {
442
415
  rnCSS?: string | undefined;
443
416
  shared: unknown;
444
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ViewProps | S_31) & {
417
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ViewProps | S_29) & {
445
418
  rnCSS?: `${string};` | undefined;
446
419
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
447
420
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -453,23 +426,10 @@ declare const styled: {
453
426
  }>;
454
427
  };
455
428
  StatusBar: {
456
- <S_32>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_32 & RN.StatusBarProps & {
457
- rnCSS?: string | undefined;
458
- shared: unknown;
459
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.StatusBarProps & S_32 & {
460
- rnCSS?: `${string};` | undefined;
461
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
462
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
463
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
464
- children?: React.ReactNode;
465
- style?: any;
466
- } & {
467
- ref?: React.Ref<any> | undefined;
468
- }>;
469
- attrs<S_33>(opts: Partial<S_33 & RN.StatusBarProps> | ((props: S_33 & RN.StatusBarProps) => Partial<S_33 & RN.StatusBarProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_33 & RN.StatusBarProps & {
429
+ <S_30>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_30 & RN.StatusBarProps & {
470
430
  rnCSS?: string | undefined;
471
431
  shared: unknown;
472
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.StatusBarProps | S_33) & {
432
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.StatusBarProps & S_30 & {
473
433
  rnCSS?: `${string};` | undefined;
474
434
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
475
435
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -479,53 +439,10 @@ declare const styled: {
479
439
  } & {
480
440
  ref?: React.Ref<any> | undefined;
481
441
  }>;
482
- };
483
- SwipeableListView: {
484
- <S_34>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_34 & RN.SwipeableListViewProps & {
442
+ attrs<S_31>(opts: Partial<S_31 & RN.StatusBarProps> | ((props: S_31 & RN.StatusBarProps) => Partial<S_31 & RN.StatusBarProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_31 & RN.StatusBarProps & {
485
443
  rnCSS?: string | undefined;
486
444
  shared: unknown;
487
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.SwipeableListViewProps & S_34 & {
488
- rnCSS?: `${string};` | undefined;
489
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
490
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
491
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
492
- children?: React.ReactNode;
493
- style?: any;
494
- } & {
495
- ref?: React.Ref<any> | undefined;
496
- }>;
497
- attrs<S_35>(opts: Partial<S_35 & RN.SwipeableListViewProps> | ((props: S_35 & RN.SwipeableListViewProps) => Partial<S_35 & RN.SwipeableListViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_35 & RN.SwipeableListViewProps & {
498
- rnCSS?: string | undefined;
499
- shared: unknown;
500
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.SwipeableListViewProps | S_35) & {
501
- rnCSS?: `${string};` | undefined;
502
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
503
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
504
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
505
- children?: React.ReactNode;
506
- style?: any;
507
- } & {
508
- ref?: React.Ref<any> | undefined;
509
- }>;
510
- };
511
- TabBarIOS: {
512
- <S_36>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_36 & RN.TabBarIOSProps & {
513
- rnCSS?: string | undefined;
514
- shared: unknown;
515
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TabBarIOSProps & S_36 & {
516
- rnCSS?: `${string};` | undefined;
517
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
518
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
519
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
520
- children?: React.ReactNode;
521
- style?: any;
522
- } & {
523
- ref?: React.Ref<any> | undefined;
524
- }>;
525
- attrs<S_37>(opts: Partial<S_37 & RN.TabBarIOSProps> | ((props: S_37 & RN.TabBarIOSProps) => Partial<S_37 & RN.TabBarIOSProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_37 & RN.TabBarIOSProps & {
526
- rnCSS?: string | undefined;
527
- shared: unknown;
528
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TabBarIOSProps | S_37) & {
445
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.StatusBarProps | S_31) & {
529
446
  rnCSS?: `${string};` | undefined;
530
447
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
531
448
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -537,10 +454,10 @@ declare const styled: {
537
454
  }>;
538
455
  };
539
456
  Text: {
540
- <S_38>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_38 & RN.TextProps & {
457
+ <S_32>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_32 & RN.TextProps & {
541
458
  rnCSS?: string | undefined;
542
459
  shared: unknown;
543
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TextProps & S_38 & {
460
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TextProps & S_32 & {
544
461
  rnCSS?: `${string};` | undefined;
545
462
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
546
463
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -550,10 +467,10 @@ declare const styled: {
550
467
  } & {
551
468
  ref?: React.Ref<any> | undefined;
552
469
  }>;
553
- attrs<S_39>(opts: Partial<S_39 & RN.TextProps> | ((props: S_39 & RN.TextProps) => Partial<S_39 & RN.TextProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_39 & RN.TextProps & {
470
+ attrs<S_33>(opts: Partial<S_33 & RN.TextProps> | ((props: S_33 & RN.TextProps) => Partial<S_33 & RN.TextProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_33 & RN.TextProps & {
554
471
  rnCSS?: string | undefined;
555
472
  shared: unknown;
556
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TextProps | S_39) & {
473
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TextProps | S_33) & {
557
474
  rnCSS?: `${string};` | undefined;
558
475
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
559
476
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -565,10 +482,10 @@ declare const styled: {
565
482
  }>;
566
483
  };
567
484
  TextInput: {
568
- <S_40>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_40 & RN.TextInputProps & {
485
+ <S_34>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_34 & RN.TextInputProps & {
569
486
  rnCSS?: string | undefined;
570
487
  shared: unknown;
571
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TextInputProps & S_40 & {
488
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TextInputProps & S_34 & {
572
489
  rnCSS?: `${string};` | undefined;
573
490
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
574
491
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -578,38 +495,10 @@ declare const styled: {
578
495
  } & {
579
496
  ref?: React.Ref<any> | undefined;
580
497
  }>;
581
- attrs<S_41>(opts: Partial<S_41 & RN.TextInputProps> | ((props: S_41 & RN.TextInputProps) => Partial<S_41 & RN.TextInputProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_41 & RN.TextInputProps & {
498
+ attrs<S_35>(opts: Partial<S_35 & RN.TextInputProps> | ((props: S_35 & RN.TextInputProps) => Partial<S_35 & RN.TextInputProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_35 & RN.TextInputProps & {
582
499
  rnCSS?: string | undefined;
583
500
  shared: unknown;
584
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TextInputProps | S_41) & {
585
- rnCSS?: `${string};` | undefined;
586
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
587
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
588
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
589
- children?: React.ReactNode;
590
- style?: any;
591
- } & {
592
- ref?: React.Ref<any> | undefined;
593
- }>;
594
- };
595
- ToolbarAndroid: {
596
- <S_42>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_42 & RN.ToolbarAndroidProps & {
597
- rnCSS?: string | undefined;
598
- shared: unknown;
599
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ToolbarAndroidProps & S_42 & {
600
- rnCSS?: `${string};` | undefined;
601
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
602
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
603
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
604
- children?: React.ReactNode;
605
- style?: any;
606
- } & {
607
- ref?: React.Ref<any> | undefined;
608
- }>;
609
- attrs<S_43>(opts: Partial<S_43 & RN.ToolbarAndroidProps> | ((props: S_43 & RN.ToolbarAndroidProps) => Partial<S_43 & RN.ToolbarAndroidProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_43 & RN.ToolbarAndroidProps & {
610
- rnCSS?: string | undefined;
611
- shared: unknown;
612
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ToolbarAndroidProps | S_43) & {
501
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TextInputProps | S_35) & {
613
502
  rnCSS?: `${string};` | undefined;
614
503
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
615
504
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -621,10 +510,10 @@ declare const styled: {
621
510
  }>;
622
511
  };
623
512
  TouchableHighlight: {
624
- <S_44>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_44 & RN.TouchableHighlightProps & {
513
+ <S_36>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_36 & RN.TouchableHighlightProps & {
625
514
  rnCSS?: string | undefined;
626
515
  shared: unknown;
627
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableHighlightProps & S_44 & {
516
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableHighlightProps & S_36 & {
628
517
  rnCSS?: `${string};` | undefined;
629
518
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
630
519
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -634,10 +523,10 @@ declare const styled: {
634
523
  } & {
635
524
  ref?: React.Ref<any> | undefined;
636
525
  }>;
637
- attrs<S_45>(opts: Partial<S_45 & RN.TouchableHighlightProps> | ((props: S_45 & RN.TouchableHighlightProps) => Partial<S_45 & RN.TouchableHighlightProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_45 & RN.TouchableHighlightProps & {
526
+ attrs<S_37>(opts: Partial<S_37 & RN.TouchableHighlightProps> | ((props: S_37 & RN.TouchableHighlightProps) => Partial<S_37 & RN.TouchableHighlightProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_37 & RN.TouchableHighlightProps & {
638
527
  rnCSS?: string | undefined;
639
528
  shared: unknown;
640
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableHighlightProps | S_45) & {
529
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableHighlightProps | S_37) & {
641
530
  rnCSS?: `${string};` | undefined;
642
531
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
643
532
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -649,10 +538,10 @@ declare const styled: {
649
538
  }>;
650
539
  };
651
540
  TouchableNativeFeedback: {
652
- <S_46>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_46 & RN.TouchableNativeFeedbackProps & {
541
+ <S_38>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_38 & RN.TouchableNativeFeedbackProps & {
653
542
  rnCSS?: string | undefined;
654
543
  shared: unknown;
655
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableNativeFeedbackProps & S_46 & {
544
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableNativeFeedbackProps & S_38 & {
656
545
  rnCSS?: `${string};` | undefined;
657
546
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
658
547
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -662,10 +551,10 @@ declare const styled: {
662
551
  } & {
663
552
  ref?: React.Ref<any> | undefined;
664
553
  }>;
665
- attrs<S_47>(opts: Partial<S_47 & RN.TouchableNativeFeedbackProps> | ((props: S_47 & RN.TouchableNativeFeedbackProps) => Partial<S_47 & RN.TouchableNativeFeedbackProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_47 & RN.TouchableNativeFeedbackProps & {
554
+ attrs<S_39>(opts: Partial<S_39 & RN.TouchableNativeFeedbackProps> | ((props: S_39 & RN.TouchableNativeFeedbackProps) => Partial<S_39 & RN.TouchableNativeFeedbackProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_39 & RN.TouchableNativeFeedbackProps & {
666
555
  rnCSS?: string | undefined;
667
556
  shared: unknown;
668
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableNativeFeedbackProps | S_47) & {
557
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableNativeFeedbackProps | S_39) & {
669
558
  rnCSS?: `${string};` | undefined;
670
559
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
671
560
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -677,10 +566,10 @@ declare const styled: {
677
566
  }>;
678
567
  };
679
568
  TouchableOpacity: {
680
- <S_48>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_48 & RN.TouchableOpacityProps & {
569
+ <S_40>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_40 & RN.TouchableOpacityProps & {
681
570
  rnCSS?: string | undefined;
682
571
  shared: unknown;
683
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableOpacityProps & S_48 & {
572
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableOpacityProps & S_40 & {
684
573
  rnCSS?: `${string};` | undefined;
685
574
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
686
575
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -690,10 +579,10 @@ declare const styled: {
690
579
  } & {
691
580
  ref?: React.Ref<any> | undefined;
692
581
  }>;
693
- attrs<S_49>(opts: Partial<S_49 & RN.TouchableOpacityProps> | ((props: S_49 & RN.TouchableOpacityProps) => Partial<S_49 & RN.TouchableOpacityProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_49 & RN.TouchableOpacityProps & {
582
+ attrs<S_41>(opts: Partial<S_41 & RN.TouchableOpacityProps> | ((props: S_41 & RN.TouchableOpacityProps) => Partial<S_41 & RN.TouchableOpacityProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_41 & RN.TouchableOpacityProps & {
694
583
  rnCSS?: string | undefined;
695
584
  shared: unknown;
696
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableOpacityProps | S_49) & {
585
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableOpacityProps | S_41) & {
697
586
  rnCSS?: `${string};` | undefined;
698
587
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
699
588
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -705,10 +594,10 @@ declare const styled: {
705
594
  }>;
706
595
  };
707
596
  TouchableWithoutFeedback: {
708
- <S_50>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_50 & RN.TouchableWithoutFeedbackProps & {
597
+ <S_42>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_42 & RN.TouchableWithoutFeedbackProps & {
709
598
  rnCSS?: string | undefined;
710
599
  shared: unknown;
711
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableWithoutFeedbackProps & S_50 & {
600
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.TouchableWithoutFeedbackProps & S_42 & {
712
601
  rnCSS?: `${string};` | undefined;
713
602
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
714
603
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -718,10 +607,10 @@ declare const styled: {
718
607
  } & {
719
608
  ref?: React.Ref<any> | undefined;
720
609
  }>;
721
- attrs<S_51>(opts: Partial<S_51 & RN.TouchableWithoutFeedbackProps> | ((props: S_51 & RN.TouchableWithoutFeedbackProps) => Partial<S_51 & RN.TouchableWithoutFeedbackProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_51 & RN.TouchableWithoutFeedbackProps & {
610
+ attrs<S_43>(opts: Partial<S_43 & RN.TouchableWithoutFeedbackProps> | ((props: S_43 & RN.TouchableWithoutFeedbackProps) => Partial<S_43 & RN.TouchableWithoutFeedbackProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_43 & RN.TouchableWithoutFeedbackProps & {
722
611
  rnCSS?: string | undefined;
723
612
  shared: unknown;
724
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableWithoutFeedbackProps | S_51) & {
613
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.TouchableWithoutFeedbackProps | S_43) & {
725
614
  rnCSS?: `${string};` | undefined;
726
615
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
727
616
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -733,38 +622,10 @@ declare const styled: {
733
622
  }>;
734
623
  };
735
624
  View: {
736
- <S_30>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_30 & RN.ViewProps & {
737
- rnCSS?: string | undefined;
738
- shared: unknown;
739
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ViewProps & S_30 & {
740
- rnCSS?: `${string};` | undefined;
741
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
742
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
743
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
744
- children?: React.ReactNode;
745
- style?: any;
746
- } & {
747
- ref?: React.Ref<any> | undefined;
748
- }>;
749
- attrs<S_31>(opts: Partial<S_31 & RN.ViewProps> | ((props: S_31 & RN.ViewProps) => Partial<S_31 & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_31 & RN.ViewProps & {
750
- rnCSS?: string | undefined;
751
- shared: unknown;
752
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ViewProps | S_31) & {
753
- rnCSS?: `${string};` | undefined;
754
- onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
755
- onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
756
- onLayout?: ((event: RN.LayoutChangeEvent) => void) | undefined;
757
- children?: React.ReactNode;
758
- style?: any;
759
- } & {
760
- ref?: React.Ref<any> | undefined;
761
- }>;
762
- };
763
- ViewPagerAndroid: {
764
- <S_52>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_52 & RN.ViewPagerAndroidProps & {
625
+ <S_28>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_28 & RN.ViewProps & {
765
626
  rnCSS?: string | undefined;
766
627
  shared: unknown;
767
- }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ViewPagerAndroidProps & S_52 & {
628
+ }) => string | number | boolean | null | undefined))[]): React.ForwardRefExoticComponent<RN.ViewProps & S_28 & {
768
629
  rnCSS?: `${string};` | undefined;
769
630
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
770
631
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -774,10 +635,10 @@ declare const styled: {
774
635
  } & {
775
636
  ref?: React.Ref<any> | undefined;
776
637
  }>;
777
- attrs<S_53>(opts: Partial<S_53 & RN.ViewPagerAndroidProps> | ((props: S_53 & RN.ViewPagerAndroidProps) => Partial<S_53 & RN.ViewPagerAndroidProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_53 & RN.ViewPagerAndroidProps & {
638
+ attrs<S_29>(opts: Partial<S_29 & RN.ViewProps> | ((props: S_29 & RN.ViewProps) => Partial<S_29 & RN.ViewProps>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_29 & RN.ViewProps & {
778
639
  rnCSS?: string | undefined;
779
640
  shared: unknown;
780
- }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ViewPagerAndroidProps | S_53) & {
641
+ }) => string | number | boolean | null | undefined))[]) => React.ForwardRefExoticComponent<(RN.ViewProps | S_29) & {
781
642
  rnCSS?: `${string};` | undefined;
782
643
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
783
644
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -789,10 +650,10 @@ declare const styled: {
789
650
  }>;
790
651
  };
791
652
  FlatList: {
792
- <S_54>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_54 & {
653
+ <S_44>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_44 & {
793
654
  rnCSS?: string | undefined;
794
655
  shared: unknown;
795
- }) => string | number | boolean | null | undefined))[]): <Type>(props: S_54 & RN.FlatListProps<Type> & {
656
+ }) => string | number | boolean | null | undefined))[]): <Type>(props: S_44 & RN.FlatListProps<Type> & {
796
657
  rnCSS?: `${string};` | undefined;
797
658
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
798
659
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -800,10 +661,10 @@ declare const styled: {
800
661
  children?: React.ReactNode;
801
662
  style?: any;
802
663
  }) => JSX.Element;
803
- attrs<S_55>(opts: Partial<S_55 & RN.FlatListProps<any>> | ((props: S_55 & RN.FlatListProps<any>) => Partial<S_55 & RN.FlatListProps<any>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_55 & RN.FlatListProps<any> & {
664
+ attrs<S_45>(opts: Partial<S_45 & RN.FlatListProps<any>> | ((props: S_45 & RN.FlatListProps<any>) => Partial<S_45 & RN.FlatListProps<any>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_45 & RN.FlatListProps<any> & {
804
665
  rnCSS?: string | undefined;
805
666
  shared: unknown;
806
- }) => string | number | boolean | null | undefined))[]) => <Props>(componentProps: S_55 & RN.FlatListProps<Props> & {
667
+ }) => string | number | boolean | null | undefined))[]) => <Props>(componentProps: S_45 & RN.FlatListProps<Props> & {
807
668
  rnCSS?: `${string};` | undefined;
808
669
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
809
670
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -813,10 +674,10 @@ declare const styled: {
813
674
  }) => JSX.Element;
814
675
  };
815
676
  SectionList: {
816
- <S_56>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_56 & {
677
+ <S_46>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_46 & {
817
678
  rnCSS?: string | undefined;
818
679
  shared: unknown;
819
- }) => string | number | boolean | null | undefined))[]): <Type_1>(props: S_56 & RN.SectionListProps<Type_1, RN.DefaultSectionT> & {
680
+ }) => string | number | boolean | null | undefined))[]): <Type_1>(props: S_46 & RN.SectionListProps<Type_1, RN.DefaultSectionT> & {
820
681
  rnCSS?: `${string};` | undefined;
821
682
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
822
683
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -824,10 +685,10 @@ declare const styled: {
824
685
  children?: React.ReactNode;
825
686
  style?: any;
826
687
  }) => JSX.Element;
827
- attrs<S_57>(opts: Partial<S_57 & RN.SectionListProps<any, RN.DefaultSectionT>> | ((props: S_57 & RN.SectionListProps<any, RN.DefaultSectionT>) => Partial<S_57 & RN.SectionListProps<any, RN.DefaultSectionT>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_57 & RN.SectionListProps<any, RN.DefaultSectionT> & {
688
+ attrs<S_47>(opts: Partial<S_47 & RN.SectionListProps<any, RN.DefaultSectionT>> | ((props: S_47 & RN.SectionListProps<any, RN.DefaultSectionT>) => Partial<S_47 & RN.SectionListProps<any, RN.DefaultSectionT>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_47 & RN.SectionListProps<any, RN.DefaultSectionT> & {
828
689
  rnCSS?: string | undefined;
829
690
  shared: unknown;
830
- }) => string | number | boolean | null | undefined))[]) => <Props_1>(componentProps: S_57 & RN.SectionListProps<Props_1, RN.DefaultSectionT> & {
691
+ }) => string | number | boolean | null | undefined))[]) => <Props_1>(componentProps: S_47 & RN.SectionListProps<Props_1, RN.DefaultSectionT> & {
831
692
  rnCSS?: `${string};` | undefined;
832
693
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
833
694
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -837,10 +698,10 @@ declare const styled: {
837
698
  }) => JSX.Element;
838
699
  };
839
700
  VirtualizedList: {
840
- <S_58>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_58 & {
701
+ <S_48>(chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_48 & {
841
702
  rnCSS?: string | undefined;
842
703
  shared: unknown;
843
- }) => string | number | boolean | null | undefined))[]): <Type_2>(props: S_58 & RN.VirtualizedListProps<Type_2> & {
704
+ }) => string | number | boolean | null | undefined))[]): <Type_2>(props: S_48 & RN.VirtualizedListProps<Type_2> & {
844
705
  rnCSS?: `${string};` | undefined;
845
706
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
846
707
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
@@ -848,10 +709,10 @@ declare const styled: {
848
709
  children?: React.ReactNode;
849
710
  style?: any;
850
711
  }) => JSX.Element;
851
- attrs<S_59>(opts: Partial<S_59 & RN.VirtualizedListProps<any>> | ((props: S_59 & RN.VirtualizedListProps<any>) => Partial<S_59 & RN.VirtualizedListProps<any>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_59 & RN.VirtualizedListProps<any> & {
712
+ attrs<S_49>(opts: Partial<S_49 & RN.VirtualizedListProps<any>> | ((props: S_49 & RN.VirtualizedListProps<any>) => Partial<S_49 & RN.VirtualizedListProps<any>>)): (chunks: TemplateStringsArray, ...functs: ((string | number | boolean | null | undefined) | ((arg: S_49 & RN.VirtualizedListProps<any> & {
852
713
  rnCSS?: string | undefined;
853
714
  shared: unknown;
854
- }) => string | number | boolean | null | undefined))[]) => <Props_2>(componentProps: S_59 & RN.VirtualizedListProps<Props_2> & {
715
+ }) => string | number | boolean | null | undefined))[]) => <Props_2>(componentProps: S_49 & RN.VirtualizedListProps<Props_2> & {
855
716
  rnCSS?: `${string};` | undefined;
856
717
  onMouseEnter?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
857
718
  onMouseLeave?: ((event: React.MouseEvent<Element, MouseEvent>) => void) | undefined;
package/dist/index.js CHANGED
@@ -18,6 +18,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
18
18
  __setModuleDefault(result, mod);
19
19
  return result;
20
20
  };
21
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
+ };
21
24
  Object.defineProperty(exports, "__esModule", { value: true });
22
25
  exports.SharedValue = exports.FontSizeContext = exports.cssToRNStyle = void 0;
23
26
  const RN = __importStar(require("react-native"));
@@ -28,14 +31,14 @@ var features_1 = require("./features");
28
31
  Object.defineProperty(exports, "FontSizeContext", { enumerable: true, get: function () { return features_1.FontSizeContext; } });
29
32
  var styleComponent_2 = require("./styleComponent");
30
33
  Object.defineProperty(exports, "SharedValue", { enumerable: true, get: function () { return styleComponent_2.SharedValue; } });
31
- const styled = (Component) => styleComponent_1.default(Component);
34
+ __exportStar(require("./useTheme"), exports);
35
+ const styled = (Component) => (0, styleComponent_1.default)(Component);
32
36
  styled.ActivityIndicator = styled(RN.ActivityIndicator);
33
37
  styled.Button = styled(RN.Button);
34
38
  styled.DrawerLayoutAndroid = styled(RN.DrawerLayoutAndroid);
35
39
  styled.Image = styled(RN.Image);
36
40
  styled.ImageBackground = styled(RN.ImageBackground);
37
41
  styled.KeyboardAvoidingView = styled(RN.KeyboardAvoidingView);
38
- styled.ListView = styled(RN.ListView);
39
42
  styled.Modal = styled(RN.Modal);
40
43
  styled.NavigatorIOS = styled(RN.NavigatorIOS);
41
44
  styled.ScrollView = styled(RN.ScrollView);
@@ -45,17 +48,13 @@ styled.RecyclerViewBackedScrollView = styled(RN.RecyclerViewBackedScrollView);
45
48
  styled.RefreshControl = styled(RN.RefreshControl);
46
49
  styled.SafeAreaView = styled(RN.SafeAreaView);
47
50
  styled.StatusBar = styled(RN.StatusBar);
48
- styled.SwipeableListView = styled(RN.SwipeableListView);
49
- styled.TabBarIOS = styled(RN.TabBarIOS);
50
51
  styled.Text = styled(RN.Text);
51
52
  styled.TextInput = styled(RN.TextInput);
52
- styled.ToolbarAndroid = styled(RN.ToolbarAndroid);
53
53
  styled.TouchableHighlight = styled(RN.TouchableHighlight);
54
54
  styled.TouchableNativeFeedback = styled(RN.TouchableNativeFeedback);
55
55
  styled.TouchableOpacity = styled(RN.TouchableOpacity);
56
56
  styled.TouchableWithoutFeedback = styled(RN.TouchableWithoutFeedback);
57
57
  styled.View = styled(RN.View);
58
- styled.ViewPagerAndroid = styled(RN.ViewPagerAndroid);
59
58
  styled.FlatList = styleComponent_1.styledFlatList;
60
59
  styled.SectionList = styleComponent_1.styledSectionList;
61
60
  styled.VirtualizedList = styleComponent_1.styledVirtualizedList;
@@ -29,20 +29,20 @@ const styled = (Component) => {
29
29
  const shared = react_1.default.useContext(exports.SharedValue);
30
30
  // Store the style for mutualization
31
31
  const cssString = react_1.default.useRef(buildCSSString(chunks, functs, props, shared));
32
- const [rnStyle, setRNStyle] = react_1.default.useState(cssToRN_1.default(cssString.current));
32
+ const [rnStyle, setRNStyle] = react_1.default.useState((0, cssToRN_1.default)(cssString.current));
33
33
  react_1.default.useEffect(() => {
34
34
  // Build the css string with the context
35
35
  const css = buildCSSString(chunks, functs, props, shared);
36
36
  cssString.current = css;
37
37
  // Try to load an existing style from the style map or save it for next time
38
- const hash = generateHash_1.default(css);
38
+ const hash = (0, generateHash_1.default)(css);
39
39
  const style = styleMap[hash];
40
40
  if (style) {
41
41
  setRNStyle(style.style);
42
42
  style.usages++;
43
43
  }
44
44
  else {
45
- const rns = cssToRN_1.default(css);
45
+ const rns = (0, cssToRN_1.default)(css);
46
46
  setRNStyle(rns);
47
47
  styleMap[hash] = { style: rns, usages: 1 };
48
48
  }
@@ -70,29 +70,29 @@ const styled = (Component) => {
70
70
  delete finalStyle.hover;
71
71
  // Read all the data we might need
72
72
  // Handle hover
73
- const { onMouseEnter, onMouseLeave, style: hoverStyle } = features_1.useHover(rnStyle, props.onMouseEnter, props.onMouseLeave);
73
+ const { onMouseEnter, onMouseLeave, style: hoverStyle } = (0, features_1.useHover)(rnStyle, props.onMouseEnter, props.onMouseLeave);
74
74
  if (hoverStyle)
75
75
  Object.assign(finalStyle, hoverStyle);
76
76
  // Calculate current em unit for media-queries
77
- const { em: tempEm } = features_1.useFontSize(finalStyle.fontSize, units.current.rem);
77
+ const { em: tempEm } = (0, features_1.useFontSize)(finalStyle.fontSize, units.current.rem);
78
78
  if (units.current.em !== tempEm)
79
79
  units.current = { ...units.current, em: tempEm };
80
80
  // Handle layout data needed for % units
81
- const { width, height, onLayout } = features_1.useLayout(props.onLayout);
81
+ const { width, height, onLayout } = (0, features_1.useLayout)(props.onLayout);
82
82
  if (needsLayout && (units.current.width !== width || units.current.height !== height)) {
83
83
  units.current = { ...units.current, width, height };
84
84
  }
85
85
  // Handle screen size needed for vw and wh units
86
- const screenUnits = features_1.useScreenSize();
86
+ const screenUnits = (0, features_1.useScreenSize)();
87
87
  if ( /* needsScreenSize && */Object.keys(screenUnits).find(key => units.current[key] !== screenUnits[key])) {
88
88
  units.current = { ...units.current, ...screenUnits };
89
89
  }
90
90
  // apply media queries
91
- const mediaQuery = features_1.useMediaQuery(rnStyle.media, units.current);
91
+ const mediaQuery = (0, features_1.useMediaQuery)(rnStyle.media, units.current);
92
92
  if (mediaQuery)
93
93
  Object.assign(finalStyle, mediaQuery);
94
94
  // Handle em units
95
- const { em } = features_1.useFontSize(finalStyle.fontSize, units.current.rem);
95
+ const { em } = (0, features_1.useFontSize)(finalStyle.fontSize, units.current.rem);
96
96
  if (units.current.em !== em)
97
97
  units.current = { ...units.current, em };
98
98
  if (finalStyle.fontSize)
@@ -102,8 +102,8 @@ const styled = (Component) => {
102
102
  if (Object.keys(finalStyle).length !== Object.keys(calculatedStyle.current).length || Object.keys(finalStyle).find(key => calculatedStyle.current[key] !== finalStyle[key])) {
103
103
  calculatedStyle.current = finalStyle;
104
104
  }
105
- const styleConvertedFromCSS = react_1.default.useMemo(() => convertStyle_1.default(calculatedStyle.current, units.current), [calculatedStyle.current, units.current]);
106
- const zIndex = features_1.useZIndex(react_native_1.StyleSheet.flatten([props.style, styleConvertedFromCSS]).zIndex);
105
+ const styleConvertedFromCSS = react_1.default.useMemo(() => (0, convertStyle_1.default)(calculatedStyle.current, units.current), [calculatedStyle.current, units.current]);
106
+ const zIndex = (0, features_1.useZIndex)(react_native_1.StyleSheet.flatten([props.style, styleConvertedFromCSS]).zIndex);
107
107
  const style = react_1.default.useMemo(() => {
108
108
  const style = [];
109
109
  style.push(styleConvertedFromCSS);
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const ThemeProvider: ({ theme, children }: {
3
+ theme: unknown;
4
+ children: React.ReactNode;
5
+ }) => JSX.Element;
6
+ export declare const useTheme: () => unknown;
7
+ export declare const withTheme: <T>(Component: React.ComponentType<T>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<React.Component<{}, {}, any>>>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.withTheme = exports.useTheme = exports.ThemeProvider = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styleComponent_1 = require("./styleComponent");
9
+ const ThemeProvider = ({ theme, children }) => {
10
+ return react_1.default.createElement(styleComponent_1.SharedValue.Provider, { value: theme }, children);
11
+ };
12
+ exports.ThemeProvider = ThemeProvider;
13
+ const useTheme = () => react_1.default.useContext(styleComponent_1.SharedValue);
14
+ exports.useTheme = useTheme;
15
+ const withTheme = (Component) => {
16
+ const theme = (0, exports.useTheme)();
17
+ const ThemedComponent = react_1.default.forwardRef((props, ref) => react_1.default.createElement(Component, { ref: ref, theme: theme, ...props }));
18
+ ThemedComponent.displayName = 'ThemedComponent';
19
+ return ThemedComponent;
20
+ };
21
+ exports.withTheme = withTheme;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-css",
3
- "version": "1.4.2",
3
+ "version": "1.5.1",
4
4
  "scripts": {
5
5
  "test": "jest",
6
6
  "prepare": "tsc",
@@ -17,44 +17,44 @@
17
17
  "react-native": ">=0.62.2"
18
18
  },
19
19
  "devDependencies": {
20
- "@babel/core": "^7.12.13",
21
- "@babel/runtime": "^7.12.13",
22
- "@react-native-community/eslint-config": "^2.0.0",
23
- "@types/jest": "^26.0.20",
24
- "@types/react": "^17.0.1",
25
- "@types/react-native": "^0.63.48",
26
- "@typescript-eslint/eslint-plugin": "^4.29.2",
27
- "@typescript-eslint/parser": "^4.29.2",
28
- "babel-jest": "^27.0.6",
29
- "babel-loader": "^8.2.2",
30
- "dotenv": "^8.2.0",
31
- "eslint": "^7.19.0",
32
- "eslint-config-standard": "^16.0.2",
33
- "eslint-plugin-import": "^2.22.1",
34
- "eslint-plugin-jest": "^24.1.3",
20
+ "@babel/core": "^7.16.5",
21
+ "@babel/runtime": "^7.16.5",
22
+ "@react-native-community/eslint-config": "^3.0.1",
23
+ "@types/jest": "^27.0.3",
24
+ "@types/react": "^17.0.37",
25
+ "@types/react-native": "^0.66.9",
26
+ "@typescript-eslint/eslint-plugin": "^5.7.0",
27
+ "@typescript-eslint/parser": "^5.7.0",
28
+ "babel-jest": "^27.4.5",
29
+ "babel-loader": "^8.2.3",
30
+ "dotenv": "^10.0.0",
31
+ "eslint": "^7.32.0",
32
+ "eslint-config-standard": "^16.0.3",
33
+ "eslint-plugin-import": "^2.25.3",
34
+ "eslint-plugin-jest": "^25.3.0",
35
35
  "eslint-plugin-node": "^11.1.0",
36
- "eslint-plugin-promise": "^4.2.1",
37
- "eslint-plugin-react": "^7.22.0",
36
+ "eslint-plugin-promise": "^5.2.0",
37
+ "eslint-plugin-react": "^7.27.1",
38
38
  "eslint-plugin-standard": "^5.0.0",
39
- "html-loader": "^1.3.2",
40
- "html-webpack-plugin": "^5.0.0",
41
- "husky": "^5.0.9",
42
- "jest": "^26.6.3",
43
- "lint-staged": "^10.5.4",
44
- "metro-react-native-babel-preset": "^0.65.0",
39
+ "html-loader": "^3.0.1",
40
+ "html-webpack-plugin": "^5.5.0",
41
+ "husky": "^7.0.4",
42
+ "jest": "^27.4.5",
43
+ "lint-staged": "^12.1.2",
44
+ "metro-react-native-babel-preset": "^0.66.2",
45
45
  "react": "^17.0.2",
46
46
  "react-dom": "^17.0.2",
47
- "react-native": "^0.64.2",
47
+ "react-native": "^0.66.4",
48
48
  "react-native-typescript-transformer": "^1.2.13",
49
- "react-native-web": "^0.17.1",
49
+ "react-native-web": "^0.17.5",
50
50
  "react-test-renderer": "17.0.2",
51
- "release-it": "^14.3.0",
52
- "ts-jest": "^27.0.5",
53
- "ts-loader": "^9.2.5",
54
- "typescript": "^4.3.5",
55
- "webpack": "^5.21.2",
56
- "webpack-cli": "^4.5.0",
57
- "webpack-dev-server": "^3.11.2"
51
+ "release-it": "^14.11.8",
52
+ "ts-jest": "^27.1.1",
53
+ "ts-loader": "^9.2.6",
54
+ "typescript": "^4.5.4",
55
+ "webpack": "^5.65.0",
56
+ "webpack-cli": "^4.9.1",
57
+ "webpack-dev-server": "^4.6.0"
58
58
  },
59
59
  "jest": {
60
60
  "preset": "react-native"
@@ -42,9 +42,9 @@ const convertStyle = (rnStyle: PartialStyle, units: Units) => {
42
42
  height: convertValue(key, rnStyle.textShadowOffset!.height || '0', units) as number
43
43
  }
44
44
  }
45
- // Font family should not be transformed
46
- else if (key === 'fontFamily') {
47
- convertedStyle[key] = value
45
+ // Font family should not be transformed (same as cursor for web in case of base64 value)
46
+ else if (['cursor', 'fontFamily'].includes(key)) {
47
+ convertedStyle[key as 'fontFamily'] = value
48
48
  }
49
49
  else {
50
50
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -47,6 +47,7 @@ export function convertValue (key: keyof PartialStyle | keyof Transform, value:
47
47
  if (convertedValue.startsWith('calc(')) return calculate(convertedValue.substring(4))// remove calc. We can keep the parenthesis
48
48
  else if (convertedValue.startsWith('max(')) return max(convertedValue.substring(4, convertedValue.length - 1))// Remove max()
49
49
  else if (convertedValue.startsWith('min(')) return min(convertedValue.substring(4, convertedValue.length - 1))// remove min()
50
+ else if (key === 'fontWeight') return convertedValue // fontWeight must be a string even when it is an integer value.
50
51
  else if (parseFloat(convertedValue) + '' === convertedValue) return parseFloat(convertedValue)
51
52
  else return convertedValue
52
53
  }
package/src/features.tsx CHANGED
@@ -51,8 +51,8 @@ export const useLayout = (onLayout?: (event: LayoutChangeEvent) => void) => {
51
51
  if (onLayout) onLayout(event)
52
52
  if (unmounted.current) return
53
53
  const { width, height } = event.nativeEvent.layout
54
- if (width !== layout.width || height !== layout.height) setLayout({ width, height })
55
- }, [onLayout, layout.width, layout.height])
54
+ setLayout(layout => layout.width === width && layout.height === height ? layout : { width, height })
55
+ }, [onLayout])
56
56
  return { onLayout: updateLayout, ...layout }
57
57
  }
58
58
 
package/src/index.tsx CHANGED
@@ -4,6 +4,7 @@ import styledComponent, { styledFlatList, styledSectionList, styledVirtualizedLi
4
4
  export { cssToRNStyle } from './cssToRN'
5
5
  export { FontSizeContext } from './features'
6
6
  export { SharedValue } from './styleComponent'
7
+ export * from './useTheme'
7
8
 
8
9
  const styled = <T, >(Component: React.ComponentType<T>) => styledComponent<T>(Component)
9
10
 
@@ -13,7 +14,6 @@ styled.DrawerLayoutAndroid = styled(RN.DrawerLayoutAndroid)
13
14
  styled.Image = styled(RN.Image)
14
15
  styled.ImageBackground = styled(RN.ImageBackground)
15
16
  styled.KeyboardAvoidingView = styled(RN.KeyboardAvoidingView)
16
- styled.ListView = styled(RN.ListView)
17
17
  styled.Modal = styled(RN.Modal)
18
18
  styled.NavigatorIOS = styled(RN.NavigatorIOS)
19
19
  styled.ScrollView = styled(RN.ScrollView)
@@ -23,17 +23,13 @@ styled.RecyclerViewBackedScrollView = styled(RN.RecyclerViewBackedScrollView)
23
23
  styled.RefreshControl = styled(RN.RefreshControl)
24
24
  styled.SafeAreaView = styled(RN.SafeAreaView)
25
25
  styled.StatusBar = styled(RN.StatusBar)
26
- styled.SwipeableListView = styled(RN.SwipeableListView)
27
- styled.TabBarIOS = styled(RN.TabBarIOS)
28
26
  styled.Text = styled(RN.Text)
29
27
  styled.TextInput = styled(RN.TextInput)
30
- styled.ToolbarAndroid = styled(RN.ToolbarAndroid)
31
28
  styled.TouchableHighlight = styled(RN.TouchableHighlight)
32
29
  styled.TouchableNativeFeedback = styled(RN.TouchableNativeFeedback)
33
30
  styled.TouchableOpacity = styled(RN.TouchableOpacity)
34
31
  styled.TouchableWithoutFeedback = styled(RN.TouchableWithoutFeedback)
35
32
  styled.View = styled(RN.View)
36
- styled.ViewPagerAndroid = styled(RN.ViewPagerAndroid)
37
33
  styled.FlatList = styledFlatList
38
34
  styled.SectionList = styledSectionList
39
35
  styled.VirtualizedList = styledVirtualizedList
@@ -0,0 +1,17 @@
1
+ import React from 'react'
2
+ import { SharedValue } from './styleComponent'
3
+
4
+ export const ThemeProvider = ({ theme, children }: { theme: unknown; children: React.ReactNode }) => {
5
+ return <SharedValue.Provider value={theme}>
6
+ {children}
7
+ </SharedValue.Provider>
8
+ }
9
+
10
+ export const useTheme = () => React.useContext(SharedValue)
11
+
12
+ export const withTheme = <T, >(Component: React.ComponentType<T>) => {
13
+ const theme = useTheme()
14
+ const ThemedComponent = React.forwardRef<React.Component, T>((props: T, ref) => <Component ref={ref} theme={theme} {...props} />)
15
+ ThemedComponent.displayName = 'ThemedComponent'
16
+ return ThemedComponent
17
+ }