Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set height to Full Screen? #24

Open
gkrinc opened this issue Dec 9, 2016 · 0 comments
Open

Can't set height to Full Screen? #24

gkrinc opened this issue Dec 9, 2016 · 0 comments

Comments

@gkrinc
Copy link

gkrinc commented Dec 9, 2016

I have a component with the following render method:

render() {

    const { height } = Dimensions.get('window').height;

    return (
        <View style={StyleSheet.absoluteFill}>
        <CardIOView
            languageOrLocale="en"
            guideColor="#00FF00"
            useCardIOLogo={false}
            hideCardIOLogo={true}
            allowFreelyRotatingCardGuide={true}
            scanInstructions={'Hold card here. It will scan automatically.'}
            scanExpiry={true}
            style={{ flex: 1, height }}
            scannedImageDuration={2}
            detectionMode={CardIOView.cardImageAndNumber}
            didScanCard={this.cardScanned} />
        </View>
    );
},

The problem is there is always a small white section above the camera and below, which can be see on the example screenshot. Is there anyway to make the the CardIOView fullscreen?

https://github.com/kayla-tech/react-native-card-io/raw/develop/screenshot.png

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant