iOS 工作正常 BarCodeScanner 全屏显示,但当我使用 android 时,会有额外的空白。
<BarCodeScanner
onBarCodeScanned={scanned ? undefined : this._handleBarCodeScanned}
style={[StyleSheet.absoluteFill, { flex: 1 }]}
/>
Run Code Online (Sandbox Code Playgroud)
我也通过提供不同的风格进行检查,但没有运气
style={{
height: Dimensions.get('window').height,
width: Dimensions.get('window').width,
}}
Run Code Online (Sandbox Code Playgroud)