callstack / callstack/react-native-paper

TextInput component's right prop should accept any React.ReactNode content

未关闭
#2,866 10 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement Hacktoberfest Stale TextInput
主要语言
TypeScript
星标
14.5k
派生
2.2k
平均合并
5 天 23 小时
30 天内合并 PR
12

描述

**Is your feature request related to a problem? Please describe.**
I want to be able to show an `ActivityIndicator` as the `right` prop for the `TextInput` to show loading states.

**Describe the solution you'd like**
The `TextInput` component's `right` prop should accept any `React.ReactNode` content and render it on the right side of the input.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
This is what I would expect the final result to look like
Screen Shot 2021-08-20 at 8 44 39 AM

react-native: 0.65.1
react-native-paper: 4.9.2
react-native-vector-icons: 8.1.0

repro: [snack example](https://snack.expo.dev/q_-DRFxH_)

贡献指南

打开贡献指南

调研方向

从 TextInput 组件的 `right` prop 开始,并使用链接的 Snack 示例重现所请求的加载状态场景。确认可以将 ActivityIndicator 作为 `right` 提供,并且它会显示在 input 的右侧;payload 未指定源文件或要运行的测试。

由索引模型根据 Issue 内容生成。

评估

技术栈
react, react-native, typescript
领域
frontend, mobile
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。