functionland / fula-sec

Fula Security Library for DID creation and sharing
1 stars 1 forks source link

Invalid integer issue #6

Closed ghorbani-m closed 1 year ago

ghorbani-m commented 1 year ago

I am trying to use the fula-sec library on the fx-fotos react-native mobile application, I just added the package to the project and import it to one of my screens and got this error:

Error: Invalid integer: 0x10000000000000000000000000000000000000000000000000000000000000000, js engine: hermes

ehsan6sha commented 1 year ago

@Ruffiano We should change the metro.config.js and add the below block to it:

transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: false,
        inlineRequires: true,
      },
    }),
  },
ghorbani-m commented 1 year ago

@Ruffiano We should change the metro.config.js and add the below block to it:

transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: false,
        inlineRequires: true,
      },
    }),
  },

Thanks @ehsan6sha , It works.

Ruffiano commented 1 year ago

This problem was solved in the latest update of fula-sec.