@tamagui/core 1.0.1-beta.194 → 1.0.1-beta.196
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/dist/cjs/createComponent.js +21 -11
- package/dist/cjs/createComponent.js.map +2 -2
- package/dist/cjs/styled.js +10 -7
- package/dist/cjs/styled.js.map +2 -2
- package/dist/cjs/types.js.map +1 -1
- package/dist/esm/createComponent.js +21 -11
- package/dist/esm/createComponent.js.map +2 -2
- package/dist/esm/styled.js +10 -7
- package/dist/esm/styled.js.map +2 -2
- package/package.json +12 -12
- package/src/createComponent.tsx +24 -11
- package/src/styled.tsx +10 -7
- package/src/types.tsx +2 -2
- package/types/types.d.ts +2 -2
package/src/types.tsx
CHANGED
|
@@ -764,7 +764,7 @@ export type StaticConfigPublic = {
|
|
|
764
764
|
/**
|
|
765
765
|
* Auto-detect, but can override, passes styles properly to react-native-web
|
|
766
766
|
*/
|
|
767
|
-
|
|
767
|
+
isReactNative?: boolean
|
|
768
768
|
|
|
769
769
|
/**
|
|
770
770
|
* By default if styled() doesn't recognize a parent Tamagui compoent or specific react-native views,
|
|
@@ -1278,7 +1278,7 @@ export type UniversalAnimatedNumber<A> = {
|
|
|
1278
1278
|
}
|
|
1279
1279
|
|
|
1280
1280
|
export type AnimationDriver<A extends AnimationConfig = AnimationConfig> = {
|
|
1281
|
-
|
|
1281
|
+
isReactNative?: boolean
|
|
1282
1282
|
useAnimations: UseAnimationHook
|
|
1283
1283
|
useAnimatedNumber: (initial: number) => UniversalAnimatedNumber<any>
|
|
1284
1284
|
useAnimatedNumberStyle: <V extends UniversalAnimatedNumber<any>>(
|
package/types/types.d.ts
CHANGED
|
@@ -443,7 +443,7 @@ export declare type StaticConfigPublic = {
|
|
|
443
443
|
/**
|
|
444
444
|
* Auto-detect, but can override, passes styles properly to react-native-web
|
|
445
445
|
*/
|
|
446
|
-
|
|
446
|
+
isReactNative?: boolean;
|
|
447
447
|
/**
|
|
448
448
|
* By default if styled() doesn't recognize a parent Tamagui compoent or specific react-native views,
|
|
449
449
|
* it will assume the passed in component only accepts style={} for react-native compatibility.
|
|
@@ -598,7 +598,7 @@ export declare type UniversalAnimatedNumber<A> = {
|
|
|
598
598
|
stop(): void;
|
|
599
599
|
};
|
|
600
600
|
export declare type AnimationDriver<A extends AnimationConfig = AnimationConfig> = {
|
|
601
|
-
|
|
601
|
+
isReactNative?: boolean;
|
|
602
602
|
useAnimations: UseAnimationHook;
|
|
603
603
|
useAnimatedNumber: (initial: number) => UniversalAnimatedNumber<any>;
|
|
604
604
|
useAnimatedNumberStyle: <V extends UniversalAnimatedNumber<any>>(val: V, getStyle: (current: any) => any) => any;
|