Skip to content

Codex review#846

Open
Freddy03h wants to merge 6 commits intomainfrom
codex-review
Open

Codex review#846
Freddy03h wants to merge 6 commits intomainfrom
codex-review

Conversation

@Freddy03h
Copy link
Copy Markdown
Member

Following #845

@Freddy03h Freddy03h requested a review from cknitt March 23, 2026 10:11
@cknitt
Copy link
Copy Markdown
Member

cknitt commented Mar 24, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c681d5a66e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

external install: unit => unit = "install"

@module("react-native") @scope("LogBox")
external uninstall: unit => unit = "install"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Map LogBox.uninstall to the correct native method

uninstall is bound to the JS symbol "install", so LogBox.uninstall() will call install() again instead of removing LogBox hooks. Any caller that relies on cleanup (for example between test runs or runtime reinitialization) will not be able to actually uninstall, which is a functional regression introduced by this binding.

Useful? React with 👍 / 👎.

@@ -1,5 +1,11 @@
@module("react-native") @scope("LogBox")
external ignoreLogs: array<string> => unit = "ignoreLogs"
external ignoreLogs: array<Js.Re.t> => unit = "ignoreLogs"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Accept string patterns in LogBox.ignoreLogs

The binding now only accepts array<Js.Re.t>, but LogBox.ignoreLogs supports exact-string matches as well as regex patterns. This change removes a previously supported and commonly used input shape, forcing downstream code using string filters to stop compiling and preventing exact-message suppression from ReScript.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can add a separate binding for the regexp version?

disableKeyboardShortcuts?: bool,
cursorColor?: Color.t,
disableFullscreenUI?: bool,
dataDetectorTypes?: array<Text.dataDetectorType>,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use TextInput detector type for dataDetectorTypes prop

This file introduces a local dataDetectorType union with TextInput-specific values, but dataDetectorTypes still references Text.dataDetectorType. Since this same commit narrowed Text.dataDetectorType (dropping #address/#calendarEvent), TextInput now rejects valid detector values and the newly added local type is never usable.

Useful? React with 👍 / 👎.

@Freddy03h Freddy03h marked this pull request as ready for review March 25, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants