Daniel Costa
Daniel Costa
Same, I'm using version 7.1.0 but it's not with hooks ```js async componentDidMount() { await RNIap.initConnection(); try { await RNIap.flushFailedPurchasesCachedAsPendingAndroid(); this.purchaseUpdateSubscription = this.connectUpdateSubscription(); this.purchaseErrorSubscription = this.connectErrorSubscription(); } catch (error) {...
> you have to check the result of `initConnection` and wrap it in a `try-catch` as it might not be available on a device or it may fail to initialize...
@andresesfm I found another issue and saw that I wasn't connected to the play store.
```js const httpsLink = new HttpLink({ uri: HTTPS_URL, headers: { 'x-hasura-admin-secret': HASURA_SECRET } }); const wssLink = new WebSocketLink({ uri: WSS_URL, options: { reconnect: true, connectionParams: { headers: { 'x-hasura-admin-secret':...
> Iam getting invalid x-hasura-admin-secret/x-hasura-access-key in graphql-request client. > i have set the HASURA_SECRET in .env file and set the header as 'x-hasura-admin-secret': process.env.HASURA_SECRET. That's because if you're using React,...
We have two solutions in here already, can someone close this? Thank you!
> You should not put the admin secret into the client application... Anyone can just take this information and make requests to your server on your behalf. Instead, follow [this...
It seems that ``` const { default: Carousel } = dynamic( () => require("@brainhubeu/react-carousel"), { ssr: false } ); ``` doesn't work right now. I've manage to import it by...
> > It seems that > > ``` > > const { default: Carousel } = dynamic( > > () => require("@brainhubeu/react-carousel"), > > { ssr: false } > >...
> Thanks @danicunhac. I have tried your import and it works but as soon as i try to import Dots it fails with the error from @mfaizan1 . I was...