Skip to content

Conversation

@mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Jan 29, 2026

Summary:
Lint Issue: ANDROIDLINT FieldsBelowInit warning on line 347.

The nativeModules property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

Fix: Moved the nativeModules computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.

changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 29, 2026
@facebook-github-bot facebook-github-bot added p: Facebook Partner: Facebook Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jan 29, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 29, 2026

@mdvacca has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91709480.

…#55352)

Summary:
Pull Request resolved: facebook#55352

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.

changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
mdvacca added a commit to mdvacca/react-native that referenced this pull request Jan 29, 2026
…#55352)

Summary:

**Lint Issue:** ANDROIDLINT FieldsBelowInit warning on line 347.

The `nativeModules` property was declared below the init block. The lint warns that fields declared after init blocks can lead to initialization order issues in Kotlin, where the field might not be available during the init block execution.

**Fix:** Moved the `nativeModules` computed property declaration to before the init block, alongside other property declarations. Since this is a computed property (getter only), there's no actual initialization order issue, but placing it before the init block follows Kotlin best practices and avoids confusion.


changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91709480
@meta-codesync meta-codesync bot closed this in 5794141 Jan 29, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 29, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 29, 2026

This pull request has been merged in 5794141.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @mdvacca in 5794141

When will my fix make it into a release? | How to file a pick request?

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants