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

Android: Text ellipsizeMode="clip" crashes on Android #36

Closed
kostyaVyrodov opened this issue Jul 19, 2018 · 0 comments
Closed

Android: Text ellipsizeMode="clip" crashes on Android #36

kostyaVyrodov opened this issue Jul 19, 2018 · 0 comments

Comments

@kostyaVyrodov
Copy link
Contributor

kostyaVyrodov commented Jul 19, 2018

Environment:

  • OS: macOS High Sierra 10.13.1
  • Node: 8.11.1
  • Yarn: 1.6.0
  • npm: 6.1.0
  • Watchman: 4.9.0
  • Android Studio: 3.1.3

Packages:

  • react: 16.3.1
  • react-native: 0.55.2

Steps to Reproduce

  1. Create android react-native app
  2. Copy Usage example to your code
  3. Run app

Expected Behavior

Application works well and a user can see menu

Actual Behavior

The app crashes with this error:
Error while updating property 'ellipsizeMode' of a view managed by: RCTText

screen shot 2018-07-19 at 10 44 10 am

Root cause

There is a similar issue in the react-native GitHub.
A way to fix is just to update MenuItem.js component and use ellipsizeMode={'clip'} only for iOS platform.

Fix

I've created the #37 PR. Please verify and merge it if's OK

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

2 participants