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

Barcode not showing on Android but showing on iOS #38

Open
zausailov opened this issue Jun 11, 2019 · 3 comments
Open

Barcode not showing on Android but showing on iOS #38

zausailov opened this issue Jun 11, 2019 · 3 comments

Comments

@zausailov
Copy link

I think this is a problem with ARTLib, but I don't know how to solve this

<BarCode value={barCode} format="EAN13" height={150} width={2.5} flat fontSize={theme.typography.body1.fontSize} />

@NKGS
Copy link

NKGS commented Jun 25, 2019

Hi Team,

I am also facing same issue.
In android mobile device no barcode is getting displayed.
I installed react-native-svg still nothing workied.
Do we need any more settings to be made in Android specifically.

Kindly provide some solution

@SahanDll
Copy link

Use below code to identify the foreground event and refresh your data.

import React, { Component } from "react";
import { AppState, StyleSheet, Text, View } from "react-native";

class AppStateExample extends Component {
state = {
appState: AppState.currentState
};

componentDidMount() {
AppState.addEventListener("change", this._handleAppStateChange);
}

componentWillUnmount() {
AppState.removeEventListener("change", this._handleAppStateChange);
}

_handleAppStateChange = nextAppState => {
if (
this.state.appState.match(/inactive|background/) &&
nextAppState === "active"
) {
console.log("App has come to the foreground!");
}
this.setState({ appState: nextAppState });
};

render() {
return (

Current state is: {this.state.appState}

);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center"
}
});

export default AppStateExample;

@ravindersistic
Copy link

hi team,

am facing same issue

<Barcode
background={"#FF0000"}
lineColor={"#00FF00"}
format="CODE128"
value={345678}
/>

barcode showing in iOS but not in android.

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

4 participants