Skip to content

Conversation

@protikbiswas100
Copy link

@protikbiswas100 protikbiswas100 commented Nov 17, 2025

Summary

Test Plan

Created a sample DateTimePicker app to demonstrate usage, ran the app using yarn react-native run-windows --arch x64

build.mp4

What's required for testing (prerequisites)? NA

What are the steps to reproduce (after prerequisites)? NA

Compatibility

OS Implemented
iOS
Android
Windows

Checklist

  • I have tested this on a device and a simulator
  • [ x] I added the documentation in README.md
  • [ x] I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)
  • I have added automated tests, either in JS or e2e tests, as applicable

Protik Biswas added 3 commits November 17, 2025 12:21
- Implement DatePicker TurboModule with promise-based API
- Implement TimePicker TurboModule with promise-based API
- Add JavaScript wrapper (DateTimePickerWindows) for imperative API
- Add TurboModule specs matching Android pattern
- Register TurboModules via AddAttributedModules()
- Update documentation with TurboModule usage examples
- Export DateTimePickerWindows from main index.js

This provides feature parity with Android's imperative DateTimePickerAndroid.open() API.
@protikbiswas100 protikbiswas100 changed the title adding stub file, code gen header and cpp implementation Adding XAML Support and Upgrading to TurboModule for Windows Nov 17, 2025
Protik Biswas added 3 commits November 17, 2025 14:57
- Fix circular import in DateTimePickerWindows.js (was importing from itself instead of .windows file)
- Change TurboModuleRegistry.getEnforcing() to get() for Windows specs to handle test environments
- Update Jest snapshot to include DateTimePickerWindows export

All tests now passing (22/22)
- Created TimePickerFabric.cpp/h implementing ContentIslandComponentView
- Registered RNTimePickerWindows as Fabric component
- Fixed DateTimePickerWindows.open() to return promise result
- Updated ReactPackageProvider to register TimePicker Fabric component
- Added TimePickerFabric files to vcxproj build configuration

This enables XAML TimePicker control to work with React Native's
new architecture (Fabric) on Windows platform.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant