# React native & sync manager

**URL:** <https://community.sendbird.com/t/react-native-sync-manager/1713>\
**Category:** JavaScript\
**Tags:** syncmanager\
**Created:** [February 17, 2021, 3:23pm UTC](https://community.sendbird.com/t/react-native-sync-manager/1713 "2021-02-17T15:23:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SafiyyaBabio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/safiyyababio/32/83_2.png) [@SafiyyaBabio](https://community.sendbird.com/u/SafiyyaBabio)\
**Post date:** [February 17, 2021, 3:23pm UTC](https://community.sendbird.com/t/react-native-sync-manager/1713/1 "2021-02-17T15:23:47Z")

</div>

I’ve been struggling to send a message with the SyncManager with [this example code](https://sendbird.com/docs/syncmanager/v1/javascript/guides/message-sync#2-send-a-message).  
I can CRUD channels and messages in my view but sending doesnt work.

My code is

```auto
const send = (messageContent: string) => {
        const params = new sb.UserMessageParams()
        params.message = messageContent
        const pendingMessage = channel.sendUserMessage(
          params,
          (message, error) => {
            if (error) {
              console.error(error)
              return
            }
            // @TODO : what happens when message fails to send
            // collection.handleSendMessageResponse(error, message)
          }
        )
        
        console.log({ pendingMessage })
        collection.appendMessage(pendingMessage)
      }

```

And I get the following errors :

```auto
TypeError: Cannot assign to read only property 'pendingResolveBottom' of object '#<Object>'
TypeError: Cannot assign to read only property 'sendingStatus' of object '#<Object>

```

Can somebody help?

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 17, 2021, 3:37pm UTC](https://community.sendbird.com/t/react-native-sync-manager/1713/2 "2021-02-17T15:37:38Z")

</div>

Hello @SafiyyaBabio,

Could you provide us with the version of the Core SDK and SyncManager SDK you’re using? I’ll see if I can reproduce this.

Thanks,  
Tyler

---

<div class="post-metadata">

**Author:** ![SafiyyaBabio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/safiyyababio/32/83_2.png) [@SafiyyaBabio](https://community.sendbird.com/u/SafiyyaBabio)\
**Post date:** [February 17, 2021, 3:48pm UTC](https://community.sendbird.com/t/react-native-sync-manager/1713/3 "2021-02-17T15:48:50Z")

</div>

Thanks @Tyler , here is

```auto
"sendbird": "3.0.129",
"sendbird-syncmanager": "1.1.22",

```

---

<div class="post-metadata">

**Author:** ![SafiyyaBabio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/safiyyababio/32/83_2.png) [@SafiyyaBabio](https://community.sendbird.com/u/SafiyyaBabio)\
**Post date:** [February 22, 2021, 10:50am UTC](https://community.sendbird.com/t/react-native-sync-manager/1713/4 "2021-02-22T10:50:49Z")

</div>

Any updates on this @Tyler ?

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [February 23, 2021, 2:20pm UTC](https://community.sendbird.com/t/react-native-sync-manager/1713/5 "2021-02-23T14:20:00Z")

</div>

@SafiyyaBabio, I apologize for the delay. Let me see if I can take a look at this today.

---

<div class="post-metadata">

**Author:** ![SafiyyaBabio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/safiyyababio/32/83_2.png) [@SafiyyaBabio](https://community.sendbird.com/u/SafiyyaBabio)\
**Post date:** [March 2, 2021, 10:17am UTC](https://community.sendbird.com/t/react-native-sync-manager/1713/6 "2021-03-02T10:17:26Z")

</div>

@Tyler Any news on this? Is there a sample repo online I could look at?
