skip to Main Content

icon is not working in react native paper text input

Code <TextInput mode="outlined" label="Enter Password" outlineColor="#000" activeOutlineColor="#0073D9" right={<TextInput.Icon name="eye" />} style={{ backgroundColor: '#eee', marginRight: scale(20), marginLeft: scale(20), }} value={Pass} onChangeText={(text) => setPass(text)} /> Output How to add an icon in react native paper text input?

VIEW QUESTION

How to use debounce hooks in React – Reactjs

import { useEffect, useState } from 'react'; export default function useDebounce(text: string, delay: number) { const [value, setValue] = useState(''); useEffect(() => { const timerId = setTimeout(() => { setValue(text); }, delay); return () => { clearTimeout(timerId); }; }, [text,…

VIEW QUESTION
Back To Top
Search