# Replace config with go-ipfs

**URL:** <https://discuss.ipfs.tech/t/replace-config-with-go-ipfs/7748>\
**Category:** Help\
**Tags:** go-ipfs\
**Created:** [April 17, 2020, 2:26pm UTC](https://discuss.ipfs.tech/t/replace-config-with-go-ipfs/7748 "2020-04-17T14:26:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PZenha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/pzenha/32/3758_2.png) [@PZenha](https://discuss.ipfs.tech/u/PZenha)\
**Post date:** [April 17, 2020, 2:26pm UTC](https://discuss.ipfs.tech/t/replace-config-with-go-ipfs/7748/1 "2020-04-17T14:26:44Z")

</div>

Hello people!  
So I’m working on a IPFS project that run on a React and React Native app. For the React app I can pass a JSON object and call **config.replace(config)** from js-ipfs everything works fine. For the React Native I’m using the go-ipfs but there is no **config.replace** or anything similar. The only thing that I found was the command module [https://github.com/ipfs/go-ipfs/tree/master/core/commands](https://github.com/ipfs/go-ipfs/tree/master/core/commands)  
How ever I’m strugling to understand how can I call the command and call " **config replace**". Or a correct way to replace or update certains keys from the config itself.

Thank you in advence

---

<div class="post-metadata">

**Author:** ![hector](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/hector/32/178_2.png) [@hector](https://discuss.ipfs.tech/u/hector)\
**Post date:** [April 17, 2020, 2:40pm UTC](https://discuss.ipfs.tech/t/replace-config-with-go-ipfs/7748/2 "2020-04-17T14:40:39Z")

</div>

Does this help? [https://github.com/ipfs/go-ipfs/blob/master/docs/examples/go-ipfs-as-a-library/main.go#L49-L68](https://github.com/ipfs/go-ipfs/blob/master/docs/examples/go-ipfs-as-a-library/main.go#L49-L68)

Also, if you have access to the fsrepo object you can [https://godoc.org/github.com/ipfs/go-ipfs/repo/fsrepo#FSRepo.SetConfig](https://godoc.org/github.com/ipfs/go-ipfs/repo/fsrepo#FSRepo.SetConfig)

---

<div class="post-metadata">

**Author:** ![PZenha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/pzenha/32/3758_2.png) [@PZenha](https://discuss.ipfs.tech/u/PZenha)\
**Post date:** [April 17, 2020, 2:45pm UTC](https://discuss.ipfs.tech/t/replace-config-with-go-ipfs/7748/3 "2020-04-17T14:45:00Z")

</div>

That actually might help! I’ll give it a try thanks a lot, I’ll leave feedback

---

<div class="post-metadata">

**Author:** ![ehsan6sha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/ehsan6sha/32/4639_2.png) [@ehsan6sha](https://discuss.ipfs.tech/u/ehsan6sha)\
**Post date:** [April 19, 2021, 2:57am UTC](https://discuss.ipfs.tech/t/replace-config-with-go-ipfs/7748/4 "2021-04-19T02:57:53Z")

</div>

@PZenha Any luck with ipfs on react-native? II ma working on a project and need any insight you might have on how to run it in react-native?

---

<div class="post-metadata">

**Author:** ![PZenha](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/pzenha/32/3758_2.png) [@PZenha](https://discuss.ipfs.tech/u/PZenha)\
**Post date:** [April 30, 2021, 4:55pm UTC](https://discuss.ipfs.tech/t/replace-config-with-go-ipfs/7748/5 "2021-04-30T16:55:34Z")

</div>

Hey 🖖  
So you can take a look at this repo [https://github.com/cusspvz/react-native-ipfs](https://github.com/cusspvz/react-native-ipfs). I can’t tell if the package `react-native-ipfs` is really working or not but give it a try.  
I didn’t developed the IPFS Node implementation on RN but here is pretty much how it was done. [https://github.com/golang/mobile](https://github.com/golang/mobile) to convert the go code into an Android .aar lib. Then import those methods into kotlin and by using react native bridge export the methods you wish into RN. [https://proandroiddev.com/react-native-bridge-with-kotlin-b2afde2f70b](https://proandroiddev.com/react-native-bridge-with-kotlin-b2afde2f70b)

A little resume: Go → go mobile → gomobile.aar → kotlin → react native bridge → react native
