From 8008c8e2cc88ab7214e64c02e2afbac92cbd9a65 Mon Sep 17 00:00:00 2001 From: emelko Date: Wed, 29 May 2019 12:25:00 +0200 Subject: [PATCH] Makes sure style is an array for it to spread --- components/app-text-input.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/app-text-input.js b/components/app-text-input.js index 8c9d273..50bf3f1 100644 --- a/components/app-text-input.js +++ b/components/app-text-input.js @@ -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 (