react-native-masked-text icon indicating copy to clipboard operation
react-native-masked-text copied to clipboard

Usage with React Native Web

Open thiagoferolla opened this issue 4 years ago • 5 comments

Does this library supports React Native Web? If not, there are plans to support it?

thiagoferolla avatar Apr 07 '20 03:04 thiagoferolla

Does this library supports React Native Web? If not, there are plans to support it?

Hello mate,

I'm currently using this library in a React-Native-Web project.

It is working great, but you will probably want to set the keyboardType prop to undefined when running on Web or the TextMaskInput field might become glitchy.

alyson1907 avatar Jun 16 '20 20:06 alyson1907

Thanks for the response. I've made a PR about this a couple of weeks ago #225 that sets the keyboardType to undefined on web but it hasn't been merged yet and I think this project is no longer supported

thiagoferolla avatar Jun 20 '20 00:06 thiagoferolla

@thiagoferolla Hahah funny enough I've actually learnt that trick by seeing your Pull Request, but I'd not realized it was yours.

I'm leaving the link in this comment since this might be useful for other developers till the PR gets merged

alyson1907 avatar Jun 20 '20 08:06 alyson1907

@thiagoferolla sorry for my beginner's question, but how integrate this solution? I'm having the same error using expo-web but I don't understand how to solve it.

agrarcanjo avatar Dec 03 '20 17:12 agrarcanjo

@thiagoferolla sorry for my beginner's question, but how integrate this solution? I'm having the same error using expo-web but I don't understand how to solve it.

@agrarcanjo if you're using the latest version of react-native-web (check the version expo uses), you're good to go. Otherwise, you can try to apply this PR #225

thiagoferolla avatar Dec 04 '20 13:12 thiagoferolla