react-native-qrcode-scanner icon indicating copy to clipboard operation
react-native-qrcode-scanner copied to clipboard

Don't render top and bottom content if it is not passed.

Open mrKorg opened this issue 4 years ago • 2 comments

If I don't pass topContent or bottomContent, can it be not renderet at all? It looks like empty spaces and can't be removed via style.

mrKorg avatar Mar 16 '20 12:03 mrKorg

Just set height = 0 for Top and Bottom. topViewStyle={{height: 0, flex: 0}} bottomViewStyle={{height: 0, flex: 0}}

vuongtuananh avatar Mar 23 '20 10:03 vuongtuananh

Just set height = 0 for Top and Bottom. topViewStyle={{height: 0, flex: 0}} bottomViewStyle={{height: 0, flex: 0}}

It does not work for me!! my QRCodeScanner is in a view with flex:5.

samaneh-kamalian avatar Apr 18 '20 05:04 samaneh-kamalian