infinitered / infinitered/reactotron-macos
TextInput not displaying initial value in react-native-macos
- Dominant language
- TypeScript
- Stars
- 20
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Description
`TextInput` components are not rendering their initial value prop in the macOS version of the app. By setting `initialValue` or `value`, the content shows up as empty. If the user starts typing, the display is correct.
## Context
Some ideas were discussed in [this thread](https://infinitered.slack.com/archives/C22K52MK2/p1761061872339569) to solve this issue. The most promising one was to revert a section of a patch to fix this behavior. That was **not** succesful.
## Steps to reproduce
Create a `TextInput` component with an initial value:
```
import { TextInput } from "react-native"
import { useState } from "react"
export function StateScreen() {
const [text, onChangeText] = useState("Reactotron")
return (
)
}
```
Run the app on macOS
Observe that the `TextInput` appears empty despite having an initial value
## Expected behavior
The `TextInput` should display "Reactotron" on initial render.
## Actual behavior
The `TextInput` appears empty. The state value updates correctly when typing (confirmed via logging), but the initial value is not visible until user interaction begins.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the provided controlled TextInput example in the macOS app and inspect the TextInput implementation or entry point responsible for displaying its value. The issue is done when the initial value "Reactotron" is visible on first render and typing continues to update the displayed text correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- desktop-dev, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100