Giter VIP home page Giter VIP logo

react-native-userbase-poc's People

Contributors

fubinator avatar jneterer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jneterer

react-native-userbase-poc's Issues

global.crypto.getRandomValues() throws RangeError

When calling global.crypto.getRandomValues() with a Uint8Array of a specified size the following error is thrown:
RangeError: Maximum call stack size exceeded.

Reproduction: Add the line global.crypto.getRandomValues(new Uint8Array(12)); in the useEffect function in the App.tsx file

This breaks calling getDatabases and openDatabase and probably some more functions

The function is polyfilled with @peculiar/webcrypto and gets actually called a huge number of times.

Error Running Project on iOS

@Fubinator No need to spend time on your end figuring this out, I'm getting some odd errors trying to get the project up and running. Firstly, not that this is an error, but when running npm install the postinstall command is logging something interesting:

> rn-nodeify --hack --install

not overwriting "assert"
not overwriting "browserify-zlib"
not overwriting "console-browserify"
not overwriting "constants-browserify"
not overwriting "react-native-crypto"
not overwriting "dns.js"
not overwriting "domain-browser"
not overwriting "events"
not overwriting "@tradle/react-native-http"
not overwriting "https-browserify"
not overwriting "react-native-os"
not overwriting "path-browserify"
not overwriting "process"
not overwriting "punycode"
not overwriting "querystring-es3"
not overwriting "react-native-level-fs"
not overwriting "react-native-udp"
not overwriting "stream-browserify"
not overwriting "string_decoder"
not overwriting "timers-browserify"
not overwriting "tty-browserify"
not overwriting "url"
not overwriting "util"
not overwriting "react-native-tcp"
not overwriting "vm-browserify"
not overwriting "readable-stream"
not overwriting "react-native-randombytes"
not reinstalling buffer
not reinstalling inherits
not overwriting shim.js. For the latest version, see rn-nodeify/shim.js

Maybe that is expected? When going through your instructions, I couldn't find /node_modules/parse-asn1/node_modules/pbkdf2/lib/default-encoding.js to make the one change but I have a feeling its because the postinstall command failed.

Lastly, when running the project in XCode I am getting this error ld: 144 duplicate symbols for architecture x86_64. Like I said, if you know what could be the issue off-hand let me know. Otherwise I'll keep researching. Just wanted to post this here other people's reference in case they have a similar issue.

Add config file

We should add a config file, where the app id and credentials can be stored. The config file should be ignored by git. I think it makes sense to add an example config file, though.

Test all functions of the JavaScript SDK

We should test all functions of Userbase's JavaScript SDK.

Here is a list to keep track:

  • init
  • signUp
  • signIn
  • signOut
  • forgotPassword
  • updateUser
  • deleteUser
  • openDatabase (#13, fix: #14, #16)
  • getDatabases (#13, fix: #14, #16)
  • insertItem (#16)
  • updateItem (#16)
  • deleteItem (#16)
  • putTransaction (#16)
  • uploadFile (#18)
  • getFile (#17)
  • shareDatabase
  • modifyDatabasePermissions
  • getVerification
  • verifyUser
  • purchaseSubscription
  • cancelSubscription
  • resumeSubscription
  • updatePaymentMethod

Update rn-nodeify

I have submitted a PR that was merged, which fixes the bug, where you need to replace global."VERSION". This was released in the latest version of rn-nodeify

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.