text.replace is not a function
With the latest release, this issue is cropping back up https://github.com/benhurott/react-native-masked-text/issues/95#issuecomment-511928816
This can happen if the value is something other than a string. For example, if you use 'money' and pass in a value that is a number.
In my case even that was working fine, until I used the MaskService. That's when I got an error if I passed in a number when trying to get raw data from 'money' for example. The value was not converted to a string yet, because it hadn't been changed. React-native-masked-text doesn't change the value to a string if it isn't changed.
The solution was simply to check if it is already a number before trying to format it.