Skip to content

☂️ Help us Kotlin-ify React Native - Round 3 #50513

Closed

Description

@mateoguzmana

☂️ 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:

  • Verify that the task is not claimed yet.
  • Comment here that you claim a task.
  • Start working on the task. Testing instructions are below.
  • Send the PR for review. Ping @mateoguzmana, @cortinico or @mdvacca for a review.
  • You can’t claim more than one task at a time.
  • If you’re not completing the task within a week, we’ll release it for the next contributor.

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:

  • Fork and clone the repo
  • Verify that RN-Tester, our reference app, runs with yarn && yarn android from the root folder
  • Migrate the file to Kotlin
  • Verify that RN-Tester runs again using the same command.

Other important things to take into account:

  • Avoid using Hungarian notation for the variables when the file is migrated. E.g.: mMyAwesomeProperty should become myAwesomeProperty
  • You might have to run the project in old architecture as well to ensure nothing breaks there when building. You can easily switch in the RN-Tester by setting newArchEnabled=false in packages/rn-tester/android/app/gradle.properties
  • Tap around in a few screens after migrating (helps to ensure nothing is breaking at runtime)

List of files to migrate

Activity

  1. deleted a comment from react-native-bot on Apr 7, 2025
  2. deleted a comment from react-native-bot on Apr 7, 2025
  3. deleted a comment from react-native-bot on Apr 7, 2025
  4. added
    ☂️ UmbrellaTo label issues that serve as coordination point and drivers for tasks in the react-native repo
    Good first issueInterested in collaborating? Take a stab at fixing one of these issues.
    on Apr 7, 2025
  5. 59 remaining items

  6. rEhan0771 commented on May 5, 2025

    @rEhan0771

    Hi, is there any thing for me , let me know , i would like to contribute.

  7. mwx27 commented on May 6, 2025

    @mwx27

    Hi, I am also eager to contribute

  8. migueldaipre commented on May 8, 2025

    @migueldaipre
    Collaborator

    Hey @mateoguzmana, You can pass on my task, I won't be able to do it. So sorry for not replying sooner!

  9. SGamrekelashvili commented on May 8, 2025

    @SGamrekelashvili

    @mateoguzmana i will do it if its possible

  10. mateoguzmana commented on May 8, 2025

    @mateoguzmana
    CollaboratorAuthor

    Hey @mateoguzmana, You can pass on my task, I won't be able to do it. So sorry for not replying sooner!

    No problem at all, thanks for letting us know!

    @l2hyunwoo, since you were first among the others who showed interest, I've re-assigned react/bridge/BaseJavaModule.java to you.

    To everyone else — it's awesome to see so much interest! At the moment, we don’t have more files available for community contribution, but I’ll definitely try to bring this up and see if there is another initiative to get more folks involved somewhere in the future. :)

  11. unpinned this issue on May 8, 2025
  12. shabeerv commented on May 13, 2025

    @shabeerv

    Hi,

    I can pick the migration for this file react/LazyReactPackage.java as I can see it has no activity for the past week

  13. Xintre commented on May 13, 2025

    @Xintre
    Contributor

    Hi @mateoguzmana, I have applied changes from cr: #51085

  14. gustavoabel commented on May 14, 2025

    @gustavoabel
    Contributor

    Hi @mateoguzmana JavaScriptModuleRegistry has already been migrated by @fabriziocucci , I didn't understand why he migrated without even having the file signed for him, but it's already done.

    #51164

  15. fabriziocucci commented on May 14, 2025

    @fabriziocucci
    Contributor

    Hey @gustavoabel, apologies for taking over the conversion of that particular file, it was definitely unintentional, I didn't notice it was assigned already! 🙏

  16. ai-dev-official commented on May 24, 2025

    @ai-dev-official

    Is this issue open? If yes, can I pick this up? Are there any specific guidelines or community I should follow?

  17. Josetic224 commented on May 29, 2025

    @Josetic224

    I would love to work on this Issue

  18. mateoguzmana commented on Jun 7, 2025

    @mateoguzmana
    CollaboratorAuthor

    Thanks everyone for the involvement here! 18 more files were migrated to Kotlin thanks to the community's help.

    I'm closing this issue as we are done with the umbrella for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ☂️ UmbrellaTo label issues that serve as coordination point and drivers for tasks in the react-native repoGood first issueInterested in collaborating? Take a stab at fixing one of these issues.Help Wanted :octocat:Issues ideal for external contributors.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions