Render custom component above thumb
@BartoszKlonowski がすでに取り組んでいます。
2024年9月10日 から。
評価
この issue はまだ評価されていません。
説明
Ask your Question
i have requirement to render custom component with dynamic value above the thumb like this
I took a look at the code and there is no way for now to render custom component/element above the thumb.
maybe we can do something like this?
export const SliderTrackMark = ({
isTrue,
thumbImage,
StepMarker,
+ index
+ renderAboveThumbComponent
}: TrackMarksProps) => {
return (
<View style={styles.trackMarkContainer}>
{StepMarker ? <StepMarker stepMarked={isTrue} /> : null}
{thumbImage && isTrue ? (
<>
+ {renderAboveThumbComponent(index)}
<View style={styles.thumbImageContainer}>
<Image source={thumbImage} style={styles.thumbImage} />
</View>
</>
) : null}
</View>
);
};
API name inspired by https://github.com/miblanchard/react-native-slider/blob/cb80d87c7f80f27856613e18459c80c70d638df7/README.md?plain=1#L88
maybe one consideration, from windows example
there is already a box with step value rendered above the thumb.
is it gonna be a conflict if we implement this?
or is there a better way to handle this case?
- 主要言語
- TypeScript
- スター
- 1.4k
- フォーク
- 296
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstack/react-native-slider のほかの issue
-
Web: value={0} with a negative minimumValue renders the thumb at the minimum対応中かも @huytdps13400 が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
callstack/react-native-slider#828 ·
-
Missing peerDependencies for react and react-native causes duplicate React instances in pnpm monorepos対応中かも @patrickwehbe が 109 日前に担当しました。 オープンbug report
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
callstack/react-native-slider#769 ·
-
bug report platform: iOS v6
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
callstack/react-native-slider#782 · コメント 6 件 ·
-
iOS: negative min value and 0 as maximum value turns maximum to 1対応中かも @huytdps13400 が 3 日前に担当しました。 オープンbug report
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
callstack/react-native-slider#780 · コメント 1 件 ·
-
bug report
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
callstack/react-native-slider#767 ·
callstack/react-native-slider の issue をすべて見る
似ている issue
-
Bump Firebase JS SDK (12.19.0 → 13.0.0)対応中かも @SelaseKay が今日担当しました。 オープンNeeds Attention type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
invertase/react-native-firebase#9364 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 4 日以内に返信
-
e2e-failure ready-to-code
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
redhat-developer/rhdh-plugin-export-overlays#4261 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] 官网文档的图片挂了オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
area:cli bug triage:in-progress
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信