We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63dff75 commit 38770acCopy full SHA for 38770ac
components/Modal/index.tsx
@@ -15,7 +15,7 @@ export default (props: ModalProps = {}) => {
15
placement = 'bottom',
16
...otherProps
17
} = props;
18
- const [display] = useState('none');
+ const [display] = useState<'none' | 'flex'>('none');
19
let [layoutHeight, setLayoutHeight] = useState(0);
20
let [layoutWidth, setLayoutWidth] = useState(0);
21
const [translateValue] = useState(new Animated.Value(0));
@@ -77,7 +77,6 @@ export default (props: ModalProps = {}) => {
77
translateStyle.translateY = translateValue;
78
}
79
if (isHorizontal) {
80
- console.log('left', placement, getTransformSize());
81
translateStyle.translateX = translateValue;
82
83
const child = (
0 commit comments