Skip to content
Snippets Groups Projects
Commit 8008c8e2 authored by emelko's avatar emelko
Browse files

Makes sure style is an array for it to spread

parent e7949377
No related branches found
No related tags found
No related merge requests found
......@@ -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]}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment