-
Notifications
You must be signed in to change notification settings - Fork 24.6k
☂️ Help us Kotlin-ify React Native - Round 3 #50513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account

Comments

Let's go 🚀 |
I would like to migrate: react/modules/blob/FileReaderModule.java |
I would like to migrate react/modules/blob/BlobProvider.java |
I would like to migrate react/bridge/DynamicFromObject.java |
I would like to migrate react/uimanager/ReactStylesDiffMap.java |
I would like to migrate react/views/textinput/ReactEditTextInputConnectionWrapper.java |
I'd like to migrate react/bridge/DynamicFromArray.java |
Hello, I'd like to migrate Edit: tracked in #50597 |
Hello, I'd like to migrate react/runtime/ReactLifecycleStateManager.java |
react/bridge/UiThreadUtil.java Can you assign me this @mateoguzmana |
Hi @mateoguzmana I could help with react/views/text/frescosupport/FrescoBasedReactTextInlineImageSpan.java |
@mateoguzmana Hello, if any file remains pending, please assign it to me. |
Summary: This PR aims to migrate UiThreadUtil from Java to kotlin as part of #50513 ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [ANDROID][CHANGED]Migrate UiThreadUtil to Kotlin Pull Request resolved: #50536 Test Plan: Tested on RN tester with both new and old arch Reviewed By: cortinico Differential Revision: D72602041 Pulled By: arushikesarwani94 fbshipit-source-id: 9f45a139805819a21039eb640a0bd1583a3acde9
Summary: This PR aims to migrate FileReaderModule from Java to kotlin as part of #50513 ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [ANDROID][CHANGED]Migrate FileReaderModule to Kotlin Pull Request resolved: #50562 Test Plan: Tested on RN tester with both new and old arch Reviewed By: arushikesarwani94 Differential Revision: D72726333 Pulled By: cortinico fbshipit-source-id: 130393373a258f18f8baaa96745da8fdebd62436
Summary: This PR introduces a rewrite of `DynamicFromMap.java` to Kotlin as requested in #50513. ## Changelog: [ANDROID] [CHANGED] - Migrated `DynamicFromMap.java` to Kotlin Pull Request resolved: #50597 Test Plan: 1. Implement unit tests for `DynamicFromMap.kt` - `DynamicFromMapTests.kt` 2. Ensure the tests pass: `./gradlew test` 3. Run the RN tester app on new & on old architectures Reviewed By: javache, rshest Differential Revision: D72853616 Pulled By: cortinico fbshipit-source-id: 855acdc7fa7810ab9f223b0be7778c028a646de5
PR for Kotlin-ify react/runtime/ReactLifecycleStateManager.java |
@rshest @mateoguzmana |
Hi @JatinDream11 @yasir6jan, just checking in — could you share an update on your files? Otherwise, we’ll go ahead and release them. |
Hi @mateoguzmana I am working on this and will be raising the PR by tomorrow. |
Hello, I wanted to contribute to React Native from a long time, looks like this can be a good start. Please assign me any files we want to migrate to kotlin. |
Summary: This PR aims to migrate ReactStylesDiffMap from Java to kotlin as part of #50513 ## Changelog: [ANDROID][CHANGED]Migrate ReactStylesDiffMap to Kotlin For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #50616 Test Plan: Tested on RN tester with both new and old arch Reviewed By: alanleedev Differential Revision: D72962016 Pulled By: cortinico fbshipit-source-id: 4de63ab78cd692822c01b5964209000c9d41f595
Hi, If the migration for this file becomes available, react/modules/blob/BlobProvider.java, or any other file. I would love to pick a file to migrate. |
Hi, I am currently busy with some urgent work. I will complete the migration of react/modules/blob/BlobProvider.java by thursday |
Hi @mateoguzmana I have raised the PR but I am getting some conflicts, resolving those |
Hi @mateoguzmana I have raised the PR #50756 |
Summary: I've migrated `FrescoBasedTextInlineImageSpan.java` to kotlin. Reference #50513. ## Changelog: [ANDROID] [CHANGED] - Refactor class `FrescoBasedTextInlineImageSpan` from Java to Kotlin. <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #50532 Test Plan: Tested the RN tester app with `yarn android` on both new and old architecture. Reviewed By: rshest Differential Revision: D73031024 Pulled By: cortinico fbshipit-source-id: e7208bf1103849f38c3dc26d73b31315b2326275
Summary: PR migrates DynamicFromArray class to Kotlin as part of #50513 work. ## Changelog: [ANDROID] [CHANGED] - Migrated DynamicFromArray to Kotlin Pull Request resolved: #50602 Test Plan: Run RN-Tester application and played around with it a bit. Reviewed By: rshest Differential Revision: D73179609 Pulled By: cortinico fbshipit-source-id: e304884fea9f57e152bca4926677d7338dc2403a
Summary: PR migrates DynamicFromObject class to Kotlin as part of #50513 work. ## Changelog: [ANDROID] [CHANGED] - Migrated DynamicFromObject to Kotlin Pull Request resolved: #50754 Test Plan: Run RN-Tester application and played around with it a bit. Reviewed By: mlord93 Differential Revision: D73118014 Pulled By: alanleedev fbshipit-source-id: 84958ff07ccafea9ec3dbdf06467c638eb92d49d
Summary: This PR introduces a rewrite of `DynamicFromMap.java` to Kotlin as requested in facebook#50513. ## Changelog: [ANDROID] [CHANGED] - Migrated `DynamicFromMap.java` to Kotlin Pull Request resolved: facebook#50597 Test Plan: 1. Implement unit tests for `DynamicFromMap.kt` - `DynamicFromMapTests.kt` 2. Ensure the tests pass: `./gradlew test` 3. Run the RN tester app on new & on old architectures Reviewed By: javache, rshest Differential Revision: D72853616 Pulled By: cortinico fbshipit-source-id: 855acdc7fa7810ab9f223b0be7778c028a646de5
Summary: This PR aims to migrate ReactStylesDiffMap from Java to kotlin as part of facebook#50513 ## Changelog: [ANDROID][CHANGED]Migrate ReactStylesDiffMap to Kotlin For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: facebook#50616 Test Plan: Tested on RN tester with both new and old arch Reviewed By: alanleedev Differential Revision: D72962016 Pulled By: cortinico fbshipit-source-id: 4de63ab78cd692822c01b5964209000c9d41f595
Summary: I've migrated `FrescoBasedTextInlineImageSpan.java` to kotlin. Reference facebook#50513. ## Changelog: [ANDROID] [CHANGED] - Refactor class `FrescoBasedTextInlineImageSpan` from Java to Kotlin. <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: facebook#50532 Test Plan: Tested the RN tester app with `yarn android` on both new and old architecture. Reviewed By: rshest Differential Revision: D73031024 Pulled By: cortinico fbshipit-source-id: e7208bf1103849f38c3dc26d73b31315b2326275
Summary: PR migrates DynamicFromArray class to Kotlin as part of facebook#50513 work. ## Changelog: [ANDROID] [CHANGED] - Migrated DynamicFromArray to Kotlin Pull Request resolved: facebook#50602 Test Plan: Run RN-Tester application and played around with it a bit. Reviewed By: rshest Differential Revision: D73179609 Pulled By: cortinico fbshipit-source-id: e304884fea9f57e152bca4926677d7338dc2403a
Summary: PR migrates DynamicFromObject class to Kotlin as part of facebook#50513 work. ## Changelog: [ANDROID] [CHANGED] - Migrated DynamicFromObject to Kotlin Pull Request resolved: facebook#50754 Test Plan: Run RN-Tester application and played around with it a bit. Reviewed By: mlord93 Differential Revision: D73118014 Pulled By: alanleedev fbshipit-source-id: 84958ff07ccafea9ec3dbdf06467c638eb92d49d

☂️ Help us Kotlin-ify React Native - Round 3
Hey all 👋
After the successful second round, we're back with another round of tasks to help us improve Kotlin support in React Native core. In this stage we are looking for help to migrate a few more files to Kotlin.
How to work
If you wish to grab one of the tasks, you should:
Code formatting
Please use KtFmt to format Kotlin classes.
You can use the web UI to reformat directly from the browser.
Migrating files to Kotlin
Please act as follow:
Other important things to take into account:
mMyAwesomeProperty
should becomemyAwesomeProperty
newArchEnabled=false
in packages/rn-tester/android/app/gradle.propertiesList of files to migrate
The text was updated successfully, but these errors were encountered: