{"repo":"margelo/react-native-bignumber","free":true,"listed":false,"github":"https://github.com/margelo/react-native-bignumber","clone":"git clone https://github.com/margelo/react-native-bignumber.git","description":"🔢 The fastest Big Number library for React Native","language":"JavaScript","stars":376,"topics":["bignumber","big","number","jsi","library","react","native","react-native","crypto","wallet"],"license":"MIT","category":"mobile-apps","readme_excerpt":"🔢 react-native-bignumber The fastest Big Number library for React Native. 🏎️ Up to 300x faster than all other solutions ⚡️ Lightning fast implementation with pure C++ and JSI 🧪 Well tested in JS and C++ (OpenSSL) 💰 Made for crypto apps and Wallets 🤌 Up to 5x smaller in JS-bundle size 🔢 Store numbers as big as your Phone's RAM can store 🔁 Easy drop-in replacement for BN.js Installation React Native Expo Usage ..as a normal library The exposed BN class is used to create new BigNumber instances from strings (binary, hex, decimal), ArrayBuffers, Buffers, numbers, or other BigNumber instances. Refer to BN.js' documentation for a full API reference and usage guide. For example, this is how you calculate large Fibonacci numbers: ..as a drop-in replacement Since popular libraries like ethers.js or elliptic use BN.js under the hood, react-native-bignumber exposes exactly the same API as BN.js so it can be used as a drop-in replacement and promises much greater speed at common crypto operations. In your babel.config.js , add a module resolver to replace bn.js with react-native-bignumber : Now, all imports for bn.js will be resolved as react-native-bignumber instead. In the Exodus app, this single line change reduced app launch time by 4 seconds ! 🚀 Community Discord Join the Margelo Community Discord to chat about react-native-bignumber or other Margelo libraries. Sponsors This library is supported by Exodus . Send, receive, and exchange Bitcoin and 160+ cryptocurrencies with e","default_branch":null,"files":null,"tree":[],"storefront":"/r/margelo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/margelo/react-native-bignumber/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}