Closed
Description
Hey all 👋
We're looking for some community support to help us convert our website, https://reactnative.dev to be more Kotlin-friendly.
A lot of the docs that you can find on the website are currently Java only. We're looking into adding snippets for both Java and Kotlin, using a tabbed view.
List of Pages to address.
Those are the pages that needs conversion:
- docs/headless-js-android.md (done by @rokkoo Add Kotlin code for "headless-js-android" documentation #3125)
- docs/native-modules-android.md (done by @alanjhughes React native Kotlin examples #3030)
- docs/integration-with-android-fragment.md (done by @mdvacca Add kotlin sample code in "Integration with an Android Fragment" documentation #2977)
- docs/new-architecture-library-intro.md (done by @mbharadwajfb - Add Kotlin to docs/new-architecture-library-intro #3116)
- docs/new-architecture-app-modules-android.md (done by @tusharvars - Add kotlin examples in new-architecture-app-modules-android.md #3241)
- docs/new-architecture-app-renderer-android.md (assigned to @dakshbhardwaj)
- docs/new-architecture-app-renderer-ios.md
- docs/new-architecture-library-android.md (done by @aerrayes Add kotlin code sample to new-architecture-library-android.md #3194)
- docs/custom-webview-android.md (done by @jazibjafri Update custom webview documentation with kotlin code examples #3060)
- docs/profile-hermes.md (handled here Update snippet in profile-hermes to be Groovy rather than Java #3193)
- docs/communication-android.md (done by @junaidn Add Kotlin code for "Communication Android" documentation #3070)
- docs/native-components-android.md (done by @RickardZrinski Add Kotlin examples in the "Android Native UI Components" documentation #3068)
- docs/_integration-with-exisiting-apps-java.md - (done by @EzequielDeOliveira - Add Kotlin to docs/_integration-with-exisiting-apps-java #3150)
- docs/getting-started.md (Specifically the
environment-setup
section would need some mention of Kotlin).
How to migrate a page.
If you wish to convert one of the page you should:
- Verify that the page is not claimed yet.
- Comment here that you claim a page.
- Start working on adding Kotlin support for the page.
- Use this PR as inspiration: Add kotlin sample code in "Integration with an Android Fragment" documentation #2977
- Make sure you're testing the code you're writing (please take the chance to verify that the doc is also up to date).
- If the documentation is not up to date, send a separate PR fixing the inconsistencies with the doc.
- You Kotlin code should be formatted with ktfmt (see below).
- Send the PR for review. Ping @cortinico and @mdvacca for a review.
Code formatting
Please use KtFmt to format the Kotlin code snippets.
You can the web UI to reformat directly from the browser:
https://facebookincubator.github.io/ktfmt/