react-native-confirmation-code-field
Version:
A react-native component to input confirmation code for both Android and IOS
18 lines (17 loc) • 517 B
JavaScript
import { StyleSheet } from 'react-native';
export const styles = StyleSheet.create({
root: {
justifyContent: 'space-between',
flexDirection: 'row',
},
textInput: {
// <TextInput/> will be rendered above Cells
...StyleSheet.absoluteFill,
// Hide <TextInput/> to simulate that user will press into a cell
opacity: 0.015,
// >>>>>> Web only styles <<<<<
width: '100%',
// Fix iOS Safari aggressive zoom
fontSize: 16,
},
});