Makes sure style is an array for it to spread

This commit is contained in:
emelko
2019-05-29 12:25:00 +02:00
parent e7949377a2
commit 8008c8e2cc
+1
View File
@@ -4,6 +4,7 @@ import { TextInput } from 'react-native'
import styles from '../styles'
export default function AppTextInput({ style, ...props }) {
if (!Array.isArray(style)) style = [style]
return (
<TextInput
style={[styles.textInputField, ...style]}