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

Read More text is not showing on Android Device. #45

Open
snevula123456 opened this issue Jun 1, 2021 · 4 comments
Open

Read More text is not showing on Android Device. #45

snevula123456 opened this issue Jun 1, 2021 · 4 comments

Comments

@snevula123456
Copy link

snevula123456 commented Jun 1, 2021

I am Trying to Use Read More text on Android and IOS Devices. Read More text is working fine in the IOS and while Android Device, it is no showing intermittently on the screens. may I know the reason Why? am I missing something?\

I am attaching the ref code.

// Read More Handlers
const renderTruncatedFooter = (handlePress: any) => {
return (

Read more

);
};

const renderRevealedFooter = (handlePress: any) => {
	return (
		<Text style={subscriptionStyles.showLess} onPress={handlePress}>
			Show less
		</Text>
	);
};

// JSX


{subscriptionData.commitmentText}

image

@groteworld
Copy link

groteworld commented Oct 4, 2021

I'm also getting this intermittent issue. Anecdotally, it seems to be on my Samsung devices more than my Pixel devices, but it seems to be specifically with Android.

My Code:

...

  renderTruncatedFooter(handlePress) {
    return (
      <TouchableOpacity onPress={handlePress}>
        <Text>Show More</Text>
      </TouchableOpacity>
    );
  }

  renderRevealedFooter(handlePress) {
    return (
      <TouchableOpacity onPress={handlePress}>
        <Text>Show Less</CRText>
      </TouchableOpacity>
    );
  }

  render() {
    return (
      <View style={styles.detailContainer}>
        <ReadMore
          textProps={{
            allowFontScaling: false,
          }}
          numberOfLines={3}
          renderTruncatedFooter={this.renderTruncatedFooter}
          renderRevealedFooter={this.renderRevealedFooter}
        >
          <Text>{this.props.text}</Text>
        </ReadMore>
      </View>
    );
  }
}

@Andrew-Jang
Copy link

I'm getting this issue as well

@kylegillen
Copy link

Me too

@ahmed-khlifi
Copy link

Any solution for this?

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

5 participants