# InvalidElementStateError in iOS React native application

**URL:** <https://discuss.appium.io/t/invalidelementstateerror-in-ios-react-native-application/32297>\
**Category:** Support\
**Created:** [November 9, 2020, 8:35am UTC](https://discuss.appium.io/t/invalidelementstateerror-in-ios-react-native-application/32297 "2020-11-09T08:35:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![XCAutomation](https://discuss.appium.io/user_avatar/discuss.appium.io/xcautomation/32/7961_2.png) [@XCAutomation](https://discuss.appium.io/u/XCAutomation)\
**Post date:** [November 9, 2020, 8:35am UTC](https://discuss.appium.io/t/invalidelementstateerror-in-ios-react-native-application/32297/1 "2020-11-09T08:35:32Z")

</div>

Hi,

@Aleksei

I’m getting below exception while try to send a text over a text area.

Encountered internal error running command: InvalidElementStateError: Error Domain=com.facebook.WebDriverAgent Code=1 “‘”compose\_subject\_textinput” StaticText’ is not ready for a text input. Neither the accessibility element itself nor its accessible descendants have the input focus” UserInfo={NSLocalizedDescription=‘“compose\_subject\_textinput” StaticText’ is not ready for a text input. Neither the accessibility element itself nor its accessible descendants have the input focus}

Used SetValue and Sendkeys function to populate the text. But none of the function worked. Why am I getting the '_InvalidElementStateError: Error Domain=com.facebook.WebDriverAgent Code=1_ ’ this error?

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [November 9, 2020, 8:45am UTC](https://discuss.appium.io/t/invalidelementstateerror-in-ios-react-native-application/32297/2 "2020-11-09T08:45:06Z")

</div>

1. wrong element
2. sometimes it is needed tap before
3. very sometimes it need tap -\> then find element input (it appears only after tap)

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [November 9, 2020, 11:55am UTC](https://discuss.appium.io/t/invalidelementstateerror-in-ios-react-native-application/32297/3 "2020-11-09T11:55:10Z")

</div>

Try the most recent server version
