bonk-challanges
v0.5.0
Published
Reusable React Native challenge components for Bonk wake-up flows.
Readme
bonk-challanges
Reusable React Native challenge components for Bonk wake-up flows.
Exports
const { BonkChallengeRunner } = require('bonk-challanges');BonkChallengeRunner renders one challenge at a time and calls onSolved(stats) when the current challenge is complete.
Challenge Types
Math
<BonkChallengeRunner type="math" difficulty="advanced" colors={colors} onSolved={onSolved} />Difficulties:
easyintermediateadvanced
Stats include type, attempts, durationMs, and difficulty.
Tile Puzzle
<BonkChallengeRunner type="tile" tileCount={8} colors={colors} onSolved={onSolved} />Tile sizes:
8= 3x3 puzzle with 8 numbered tiles and one blank space.15= 4x4 puzzle with 15 numbered tiles and one blank space.
The old 2x2 puzzle has been removed. Stats include type, moves, durationMs, and tileCount.
Packaging
This package is consumed by the mobile app as a local packed tarball. After editing:
npm packThen update the mobile app dependency/lockfile or reinstall so mobile/node_modules/bonk-challanges receives the new package contents.
