Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Yajur-Grover d5a93ec84d
Integrate 2/29 (#12901)
* integrate 2/29

* Change files

* fix cli version

* Change files

* fix flow error

* update snapshot

* Fix one calling convention mismatch

* Disable JsiTurboModuleTests for x86 platforms

---------

Co-authored-by: Vladimir Morozov <vmorozov@microsoft.com>
2024-04-09 15:26:12 -07:00
Zihan Chen (MSFT) a5eb34c37c
@rnw/codegen generates GetStructInfo instead of REACT_STRUCT (#11982)
* #include <NativeModules.h>

* Separate custom types and reflection in template

* Generate GetStructInfo function instead of REACT_STRUCT

* ...

* Update generated files

* Change files

* ...
2023-08-07 19:58:14 +00:00
Andrew Coates 07e0f2dd9d
Remove extra parenthesis in codegen output (#10693)
* Remove extra paren in codegen output

* Change files
2022-10-06 18:28:42 -07:00
Zihan Chen (MSFT) 7977ece4ea
MakeTurboModuleProvider<TModule> uses TModule::ModuleSpec as the spec (#9049)
* MakeTurboModuleProvider<TModule> uses TModule::ModuleSpec as the spec

* Clean up ReactInstanceWin.cpp

* yarn format

* Change files

* Codegen prints `::React::JSValue` instead of `React::JSValue`

* Change files

* Fix build breaks in sample-apps
2021-11-03 16:30:44 -07:00
Zihan Chen (MSFT) 6238240df4
Check constants in generated turbo module specs (#8730)
* Split method validation generation to a single file

* Refactor

* Refactor

* Generate constant spec

* Update GenerateNM2.ts

* yarn build

* Update AppStateModule

* Update I18nManagerModule

* Update DeviceInfoModule

* Change files

* Update AppStateModule.cpp
2021-09-28 18:31:40 -07:00
Zihan Chen (MSFT) 42d0853c68
Generate `std::vector<T>` for array types in turbo modules (#8606)
* Generate `std::vector<T>` for array types in turbo modules

* `yarn build`

* Change files
2021-09-09 15:28:58 -07:00
Zihan Chen (MSFT) d085526651
Match Alert module with NativeDialogManagerWindowsSpec.h (#8548)
* REACT_STRUCT_INHERITED

* Update AlertModule.cpp

* Test REACT_STRUCT_INHERITED

* Change files

* Create NativeDialogManagerWindows.js

* Create NativeDialogManagerWindowsSpec.g.h

* Switch spec for alert module

* Use the correct Int32 in spec

* Move NativeDialogManagerWindows.js to the right location

* Codegen type for function arguments

* `yarn build`

* ...

* Fix AppStateModule

* Fix AccessibilityInfoModule

* `yarn format`

* Change files

* Update overrides.json

* Update NativeDialogManagerWindows.js

* Remove REACT_STRUCT_INHERITED since it is not necessary now
2021-09-07 14:48:59 -07:00
Andrew Coates 8dcf516f91
Move AppState and DeviceInfo to use module spec files (#4991)
* Move more native modules to Spec files

* Move device info init to object created on UI thread.

* feedback

* format

* Change files

* Add missing method on TestAppStateModule
2020-05-22 14:18:33 -07:00
Andrew Coates a5deb25926
Use TurboModuleSpec for the built in Clipboard native module (#4689)
* Use spec file for clipboard module

* Change files

* update sln files for new dep

* Fix format of REACT_SHOW_METHOD_SPEC_ERRORS macro

* missing import

* codereview feedback

* minor fix

* minor change
2020-04-23 18:17:50 +00:00