microsoft / microsoft/react-native-windows
Text input not apearing on a flyout modal
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 17.3k
- Forks
- 1.2k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 33
Description
Problem Description
Text input behaves in a stange way.
when you put a flyout modal that contains a Text input, initialy you get it working, after that when you continue working and get back to it you dont find it there, or somtimes just when you close the modal and open it again you dont find it there, it just doesnt show up,
<Flyout
isOpen={CredentialsModal}
onDismiss={() => {
setCredentialsModal(false);
}}>
<View
className={clsx(
'w-[400px] p-6 space-y-4 rounded',
colorScheme === 'dark' ? 'bg-neutral-900' : 'bg-neutral-200',
)}>
<View>
<TextInput onChangeText={setAccessKey} placeholder="Access key" />
</View>
<View>
<TextInput onChangeText={setSecreetKey} placeholder="Secret key" />
</View>
<View className="mt-4 flex-row space-x-1">
<View className="flex-1">
<Button
onPress={async () => {
Managedrives.testConnection(accessKey, secreetKey);
}}
title="Testez les accès"
/>
</View>
<View className="flex-1">
<Button
onPress={() => {
// setMountModal(false);
}}
title="Enregistrez les accès"
/>
</View>
</View>
</View>
</Flyout>
By the way im using naitvewind for styling,
PS: i tried using react native stylesheet and got the same results
Steps To Reproduce
- a flyout menu with the code provided above.
Expected Results
the text input to apear each time
CLI version
13.6.6
Environment
System:
OS: Windows 11 10.0.22631
CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
Memory: 2.55 GB / 15.81 GB
Binaries:
Node:
version: 18.20.2
path: C:\Program Files\nodejs-18\node.EXE
Yarn:
version: 3.6.4
path: ~\AppData\Roaming\npm\yarn.CMD
npm:
version: 9.3.1
path: C:\Program Files\nodejs-18\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.18362.0
- 10.0.19041.0
- 10.0.22621.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.10.34928.147 (Visual Studio Community 2022)
Languages:
Java: 19.0.2
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.2
wanted: 0.74.2
react-native-windows:
installed: 0.74.7
wanted: 0.74.7
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Community Modules
"@react-native-async-storage/async-storage": "^1.23.1",
"@react-native-picker/picker": "^2.7.6",
"nativewind": "^2.0.11",
"react-router-native": "^6.23.1",
Target Platform Version
10.0.19041
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the provided Flyout and TextInput example in the stated React Native Windows 0.74.7 environment on Windows 11, then trace the Flyout and TextInput entry points involved in reopening the modal. Done means the text inputs appear and remain usable every time the Flyout is closed and reopened.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100