From 54f5f5732c92cea810480784e7d841e051c1587a Mon Sep 17 00:00:00 2001 From: Ethan Krich Date: Sat, 9 Aug 2025 18:42:36 -0700 Subject: [PATCH 1/3] fix: github issue template --- .github/ISSUE_TEMPLATE/bug_report.yml | 1 - .github/ISSUE_TEMPLATE/config.yml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index dc82d4a..6e42fec 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -63,6 +63,5 @@ body: attributes: label: Reproducible example repository description: Please provide a link to a repository on GitHub with a reproducible example. - render: js validations: required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 40e31d5..1df454b 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,9 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-issue-config.json blank_issues_enabled: false contact_links: + - name: Bug report 🐛 + url: https://github.com/johelder/react-native-input-code-otp/issues/new?template=bug_report.yml + about: Report a reproducible bug or regression in this library. - name: Feature Request 💡 url: https://github.com/johelder/react-native-input-code-otp/discussions/new?category=ideas about: If you have a feature request, please create a new discussion on GitHub. From 571454ecf597add101515b7c98f44f0d7c860bbb Mon Sep 17 00:00:00 2001 From: Ethan Krich Date: Sat, 9 Aug 2025 18:43:31 -0700 Subject: [PATCH 2/3] fix: duplicate bug report option --- .github/ISSUE_TEMPLATE/config.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index 1df454b..1271d2b 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,9 +1,6 @@ # yaml-language-server: $schema=https://json.schemastore.org/github-issue-config.json blank_issues_enabled: false contact_links: - - name: Bug report 🐛 - url: https://github.com/johelder/react-native-input-code-otp/issues/new?template=bug_report.yml - about: Report a reproducible bug or regression in this library. - name: Feature Request 💡 url: https://github.com/johelder/react-native-input-code-otp/discussions/new?category=ideas about: If you have a feature request, please create a new discussion on GitHub. From 3eb80e4b592ebcf5e29251df41cd2a294c5c8f4c Mon Sep 17 00:00:00 2001 From: johelder Date: Mon, 11 Aug 2025 20:22:30 -0300 Subject: [PATCH 3/3] fix: use React ref to create Animated.Value instead of useAnimatedValue to support react-native-web --- src/components/caret.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/caret.tsx b/src/components/caret.tsx index a41354f..6a56278 100644 --- a/src/components/caret.tsx +++ b/src/components/caret.tsx @@ -1,10 +1,10 @@ -import { useEffect } from 'react'; -import { StyleSheet, Animated, useAnimatedValue } from 'react-native'; +import { useEffect, useRef } from 'react'; +import { StyleSheet, Animated } from 'react-native'; import { DEFAULT_DARK_COLOR } from '../constants'; import { useTextInputOTP } from '../hooks/use-text-input-otp'; export function Caret() { - const opacity = useAnimatedValue(0); + const opacity = useRef(new Animated.Value(0)).current; const { caretColor } = useTextInputOTP(); useEffect(() => {