INNER CODE UNIT · JavaScript

result

Expensify/react-native-qrcode-svg · src/index.js:110

  const result = useMemo(() => {
    try {
      return transformMatrixIntoPath(genMatrix(value, ecl), size)
    } catch (error) {
      if (onError && typeof onError === 'function') {
        onError(error)
      } else {
        // Pass the error when no handler presented
        throw error
      }
    }
  }, [value, size, ecl])

  if (!result) {
    return null
  }

  const { path, cellSize } = result

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…