I'm trying to use the client side functionality of getstream.io (specifically the feed pull and live updates) to build a stream on a native app built with react-native. When I try to initialize a client in the javascript code using a token passed from my server, I get the error:
[Error: Missing app id, which is needed to subscribe, use var client = stream.connect(key, secret, appId);]
However, when I add the secret and appId (for testing purposes, I would be very wary of deploying like this) I get the error:
[Error: You are publicly sharing your private key. Dont use the private key while in the browser.]
Is there a way to get a client version running using Expo (the Create React Native App default) without ejecting from Create React Native App?