From a2ec4f9d1903a90668f57d3e694acee093140349 Mon Sep 17 00:00:00 2001 From: Hoa Phan Date: Mon, 11 Jul 2022 17:17:22 +0700 Subject: [PATCH] fix: secureTextEntry issue --- package.json | 2 +- src/HashtagInput/index.tsx | 10 +++++++++- src/TagsInput/index.tsx | 9 ++++++++- src/TextInput/index.tsx | 12 ++++++++++-- 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4340567..2b64f0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-element-textinput", - "version": "2.0.0", + "version": "2.0.1", "description": "A react-native TextInput, TagsInput and AutoComplete component easy to customize for both iOS and Android.", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/HashtagInput/index.tsx b/src/HashtagInput/index.tsx index 625f2b2..dd1f936 100644 --- a/src/HashtagInput/index.tsx +++ b/src/HashtagInput/index.tsx @@ -1,6 +1,14 @@ /* eslint-disable no-shadow */ import React, { useCallback, useEffect, useMemo, useState } from 'react'; -import { Image, StyleProp, Text, TextInput, TextStyle, TouchableOpacity, View } from 'react-native'; +import { + Image, + StyleProp, + Text, + TextInput, + TextStyle, + TouchableOpacity, + View, +} from 'react-native'; import { styles } from './styles'; import type { HashtagProps } from './model'; diff --git a/src/TagsInput/index.tsx b/src/TagsInput/index.tsx index 5da83ce..533f4d8 100644 --- a/src/TagsInput/index.tsx +++ b/src/TagsInput/index.tsx @@ -1,6 +1,13 @@ /* eslint-disable no-shadow */ import React, { useCallback, useEffect, useMemo, useState } from 'react'; -import { StyleProp, Text, TextInput, TextStyle, TouchableOpacity, View } from 'react-native'; +import { + StyleProp, + Text, + TextInput, + TextStyle, + TouchableOpacity, + View, +} from 'react-native'; import { styles } from './styles'; import type { TagsInputProps } from './model'; diff --git a/src/TextInput/index.tsx b/src/TextInput/index.tsx index d5d2c44..0738198 100644 --- a/src/TextInput/index.tsx +++ b/src/TextInput/index.tsx @@ -1,6 +1,14 @@ /* eslint-disable no-shadow */ import React, { useEffect, useMemo, useState } from 'react'; -import { Image, StyleProp, Text, TextInput, TextStyle, TouchableOpacity, View } from 'react-native'; +import { + Image, + StyleProp, + Text, + TextInput, + TextStyle, + TouchableOpacity, + View, +} from 'react-native'; import { styles } from './styles'; import type { InputProps } from './model'; @@ -178,9 +186,9 @@ const TextInputComponent: InputProps = (props) => { {label} ) : null}