From 7b0cd50daca34a1ed3327b47b7ef43f23cac535a Mon Sep 17 00:00:00 2001 From: fzyzcjy Date: Thu, 16 Aug 2018 18:19:43 +0800 Subject: [PATCH] fix: fix issue that `Modal` children cannot grow (#491) Add `flex:1` to Modal to fix the issue that `Modal` children cannot grow. fixes #471 --- src/components/Modal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Modal.js b/src/components/Modal.js index 2de48f1..0026c81 100644 --- a/src/components/Modal.js +++ b/src/components/Modal.js @@ -154,7 +154,7 @@ class Modal extends React.Component { )} - + {children} @@ -171,4 +171,7 @@ const styles = StyleSheet.create({ ...StyleSheet.absoluteFillObject, justifyContent: 'center', }, + childrenWrapper: { + flex: 1 + } });