@tamagui/react-native-types 0.0.0-bootstrap.0 → 3.0.0-beta.1093.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/package.json +29 -7
- package/src/generated.d.ts +3798 -0
- package/src/index.d.ts +18 -0
- package/README.md +0 -1
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The slice of react-native's type surface Tamagui uses on web, inlined.
|
|
3
|
+
*
|
|
4
|
+
* Tamagui's props are typed against react-native's, but on web nothing imports
|
|
5
|
+
* react-native at runtime. Without this package a web-only app has to install
|
|
6
|
+
* react-native purely so `tsc` can resolve those types, and any non-`.native`
|
|
7
|
+
* file that imports them is tied to it. Everything here is copied from
|
|
8
|
+
* react-native's own `.d.ts` by `bun run generate`, so it is the same type, not
|
|
9
|
+
* a re-description of one.
|
|
10
|
+
*
|
|
11
|
+
* Anything genuinely native-only stays where it is: `.native.ts` files keep
|
|
12
|
+
* importing react-native directly, because they only ever run where it exists.
|
|
13
|
+
*
|
|
14
|
+
* `generated.d.ts` is regenerated wholesale and must not be hand-edited. Put
|
|
15
|
+
* Tamagui-owned types here instead.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export type * from './generated'
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# @tamagui/react-native-types
|