I'm trying to get ONLY number for input in react-native, i know if we want to get number, we can use keyboardType="numeric" ,but problem is, nothing can stop me from input * + #
Like below image, i still can iput these symbol without any problem

I search stackoverflow for this, but that answer was outdated, it was 2016 and that time, keyboard only have . symbol.
For 5 years later, i think maybe someone will get struggle like me, so if you solved this, please help, thank you a lots
.replace(/[^0-9]/g, '').