React Native input component for money, preset and right aligned.
npm install react-native-money-input
npm install react-native-money-input
`
Then import it into your app and use it just like a regular TextInput
`
import MoneyInput from 'react-native-money-input'
const MyComponent = () => {
return console.log(text)} />
}
`
!Money Input Gif
Styling & Passing Props
This component allows for custom styling simply by passing styles to the style prop. You can also pass other props to the component. For example:
`
const MyStyledComponent = () => {
return
}
const styles = StyleSheet.create({
moneyInput: {
fontSize: 74,
fontWeight: 'bold',
color: 'white',
borderWidth: 0
}
})
``