react / react/react-native

can not trigger Kotlin code suggestions

オープン
#55,814 コメント 6 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Needs: Attention Needs: Repro
主要言語
C++
スター
127k
フォーク
25.3k
平均マージ
1日 23時間
マージ済み PR(30日)
4

説明

Description

In MainActivity,can not trigger Kotlin code suggestions.
But Comment out the code then can trigger code suggestions
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate

Steps to reproduce

1、create project
2、open Android Studio
3、open MainActivity
4、print code

React Native Version

0.83.2

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info
System:
  OS: Windows 11 10.0.26200
  CPU: (8) x64 Intel(R) Core(TM) i3-10100 CPU @ 3.60GHz
  Memory: 9.24 GB / 31.75 GB
Binaries:
  Node:
    version: 24.12.0
    path: C:\Users\zhumi\AppData\Local\Volta\tools\image\node\24.12.0\node.EXE
  Yarn:
    version: 4.10.3
    path: C:\Users\zhumi\AppData\Local\Volta\tools\image\yarn\4.10.3\bin\yarn.CMD
  npm:
    version: 11.6.2
    path: C:\Users\zhumi\AppData\Local\Volta\tools\image\node\24.12.0\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "28"
      - "29"
      - "30"
      - "31"
      - "32"
      - "33"
      - "34"
      - "35"
      - "36"
      - "36"
    Build Tools:
      - 28.0.3
      - 29.0.2
      - 29.0.3
      - 30.0.0
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
      - 36.0.0
      - 36.1.0
    System Images:
      - android-23 | Android TV Intel x86 Atom
      - android-29 | Google Play Intel x86 Atom
      - android-31 | Google APIs Intel x86 Atom_64
      - android-35 | Google APIs Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
IDEs:
  Android Studio: Not Found
  Visual Studio: Not Found
Languages:
  Java:
    version: 18.0.2.1
    path: C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.2.0
    wanted: 19.2.0
  react-native:
    installed: 0.83.2
    wanted: 0.83.2
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
Stacktrace or Logs
none
MANDATORY Reproducer

none

Screenshots and Videos

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、MainActivity に記載された ReactActivity と delegate の import を使って Android Studio で問題を再現し、次にそれらの import をコメントアウトした場合のコード補完の挙動と比較します。MainActivity 以外に指定されたソースファイル、テスト、ログ、または必須の reproducer はありません。完了の条件は、原因を特定し、報告された React Native 0.83.2 のセットアップで Kotlin のコード候補を復元することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, kotlin, react-native
領域
developer-experience, mobile-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。