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..1271d2b 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,3 +1,4 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-issue-config.json blank_issues_enabled: false contact_links: - name: Feature Request 💡 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(() => {