{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/18474","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/18474/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/18474/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/18474/events","html_url":"https://github.com/facebook/react-native/issues/18474","id":307057823,"number":18474,"title":"Android: Text ellipsizeMode=\"clip\" crashes on Android","user":{"login":"borisyankov","id":867242,"avatar_url":"https://avatars3.githubusercontent.com/u/867242?v=4","gravatar_id":"","url":"https://api.github.com/users/borisyankov","html_url":"https://github.com/borisyankov","followers_url":"https://api.github.com/users/borisyankov/followers","following_url":"https://api.github.com/users/borisyankov/following{/other_user}","gists_url":"https://api.github.com/users/borisyankov/gists{/gist_id}","starred_url":"https://api.github.com/users/borisyankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borisyankov/subscriptions","organizations_url":"https://api.github.com/users/borisyankov/orgs","repos_url":"https://api.github.com/users/borisyankov/repos","events_url":"https://api.github.com/users/borisyankov/events{/privacy}","received_events_url":"https://api.github.com/users/borisyankov/received_events","type":"User","site_admin":false},"labels":[{"id":870851515,"url":"https://api.github.com/repos/facebook/react-native/labels/:large_blue_diamond:Android","name":":large_blue_diamond:Android","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-20T22:13:03Z","updated_at":"2018-03-20T22:28:22Z","closed_at":"2018-03-20T22:28:22Z","author_association":"NONE","body":"- [x] I have reviewed the [documentation](https://facebook.github.io/react-native)\r\n- [x] I have searched [existing issues](https://github.com/facebook/react-native/issues)\r\n- [x] I am using the [latest React Native version](https://github.com/facebook/react-native/releases)\r\n\r\n<!-- Describe your issue in detail. -->\r\n\r\n## Environment\r\nEnvironment:\r\n  OS:  macOS High Sierra 10.13.3\r\n  Node:  9.0.0\r\n  Yarn:  1.3.2\r\n  npm:  5.5.1\r\n  Watchman:  4.7.0\r\n  Xcode:  Xcode 9.2 Build version 9C40b\r\n  Android Studio:  3.0 AI-171.4408382\r\n\r\nPackages: (wanted => installed)\r\n  react: 16.2.0 => 16.2.0\r\n  react-native: ^0.54.2 => 0.54.2\r\n\r\n## Steps to Reproduce\r\n* Use a [`<Text />`](https://facebook.github.io/react-native/docs/text.html) component\r\n* Set ellipsizeMode to \"clip\"\r\n\r\n## Expected Behavior\r\nWhile the documentation clearly states `clip is working only for iOS` I assumed this will have no effect on Android.\r\n\r\n## Actual Behavior\r\nCauses an exception manifesting as a crash inside the app:\r\n`RuntimeException\r\ncom.facebook.react.bridge.JSApplicationIllegalArgumentException: Error while updating property 'ellipsizeMode' of a view managed by: RCTText`\r\n```\r\ncom.facebook.react.bridge.ReactContext in handleException at line 313\r\ncom.facebook.react.uimanager.GuardedFrameCallback in doFrame at line 33\r\ncom.facebook.react.modules.core.ReactChoreographer$ReactChoreographerDispatcher in doFrame at line 136\r\ncom.facebook.react.modules.core.ChoreographerCompat$FrameCallback$1 in doFrame at line 107\r\nandroid.view.Choreographer$CallbackRecord in run at line 909\r\nandroid.view.Choreographer in doCallbacks at line 723\r\nandroid.view.Choreographer in doFrame at line 655\r\nandroid.view.Choreographer$FrameDisplayEventReceiver in run at line 897\r\nandroid.os.Handler in handleCallback at line 790\r\nandroid.os.Handler in dispatchMessage at line 99\r\nandroid.os.Looper in loop at line 164\r\nandroid.app.ActivityThread in main at line 6494\r\njava.lang.reflect.Method in invoke\r\ncom.android.internal.os.RuntimeInit$MethodAndArgsCaller in run at line 438\r\ncom.android.internal.os.ZygoteInit in main at line 807\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/374778879","html_url":"https://github.com/facebook/react-native/issues/18474#issuecomment-374778879","issue_url":"https://api.github.com/repos/facebook/react-native/issues/18474","id":374778879,"user":{"login":"hramos","id":165856,"avatar_url":"https://avatars3.githubusercontent.com/u/165856?v=4","gravatar_id":"","url":"https://api.github.com/users/hramos","html_url":"https://github.com/hramos","followers_url":"https://api.github.com/users/hramos/followers","following_url":"https://api.github.com/users/hramos/following{/other_user}","gists_url":"https://api.github.com/users/hramos/gists{/gist_id}","starred_url":"https://api.github.com/users/hramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hramos/subscriptions","organizations_url":"https://api.github.com/users/hramos/orgs","repos_url":"https://api.github.com/users/hramos/repos","events_url":"https://api.github.com/users/hramos/events{/privacy}","received_events_url":"https://api.github.com/users/hramos/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T22:28:22Z","updated_at":"2018-03-20T22:28:22Z","author_association":"CONTRIBUTOR","body":"We should make this clearer in the docs. Can you open an issue at https://github.com/facebook/react-native-website instead?\r\n\r\nClosing as clip is a iOS-only prop."}}
{"actor":{"display_login":"hramos"}}