Are you using the Couchbase Lite PhoneGap plugin? On which platform? If so, the database url is accessible in the onDeviceReady through:
cblite.getURL(function(err, url) {…}); >From there you can perform CRUD operation, queries and replication operations >on the REST API. I also suggest to check out the react native couchabse lite plugin https://github.com/couchbaselabs/react-native-couchbase-lite. Reactjs and react native are very similar in the api and with react native you get the native look and feel. James On 27 April 2016 at 04:42:34, Preethi SrinivasaMurthy (preethi.mi...@gmail.com) wrote: Hi all, We are using reactJs with CBLite. Can you tell me where we need to set up the Cblite connection. How can we make sure the config object CbLite object is accessible everywhere in the application? -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/f9974178-e5dd-4cb5-abbc-400fee68c8b2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/etPan.5721ae94.1df2fb12.23e%40MacBook-Pro-4.home. For more options, visit https://groups.google.com/d/optout.