Border Wallets library for React Native
This library uses core crypto module so install rn-nodify
npm install react-native-border-walletsimport BorderWalletGrid, { GridType, generateBorderWalletGrid } from 'react-native-border-wallets';
    <BorderWalletGrid
      gridType={GridType.WORDS}
      mnemonic="12 word mnemonic"
      accentColor="tomato"
      onCellSelected={(index, selectedCells) =>
        console.log(index, selectedCells)
      }
      onGridLoaded={(grid) => console.log('onGridLoaded', grid)}
    />
	
	const grid = generateBorderWalletGrid('12 words', GridType.WORDS)
	<BorderWalletGrid .../> renders Border Wallet grid for a given mnemonic
Props:
mnemonic: stringInitial 12 words mnemonic to be use to generate entropy gridgridType: WORDS | NUMBERS | HEXADECIMAL(Base64) | BLANKType of gridaccentColor: stringAccent color for loader and selected cellonGridLoaded: (grid: string[]) => voidOptional: Callback to handle grid load completiononCellSelected: (index: number, selectedCells: number[])=> voidOptional callback to handle pattern selection
generateBorderWalletGrid returns grid array of 2048 elements for a given mnemonic and grid type
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT