Commit 3bb86b0
Change Animated re-export to generate correct namespace in TS (#50222)
Summary:
Pull Request resolved: #50222
The flow-api-translator will generate
```ts
export * as default from './AnimatedExports';
```
in TS which preserves the namespace. Previous import, export translated to:
```ts
declare const $$EXPORT_DEFAULT_DECLARATION$$: typeof Animated;
declare type $$EXPORT_DEFAULT_DECLARATION$$ =
typeof $$EXPORT_DEFAULT_DECLARATION$$;
export default $$EXPORT_DEFAULT_DECLARATION$$;
```
which dropped the `Animated` namespace.
Changelog:
[Internal]
Reviewed By: huntie
Differential Revision: D71737199
fbshipit-source-id: a46a7ddddd023fa831cd4bb50f17a0641f3280661 parent 9c5cf4e commit 3bb86b0
2 files changed
Lines changed: 3 additions & 5 deletions
File tree
- packages/react-native/Libraries
- Animated
- __tests__/__snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
14 | 13 | | |
15 | | - | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
| 121 | + | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments