npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@shakenbake/react-native

v0.0.13

Published

React Native SDK for ShakeNbake bug reporting. Users shake their device to capture a screenshot, annotate it with Skia-powered drawing tools, optionally record audio, and submit a bug report.

Readme

@shakenbake/react-native

React Native SDK for ShakeNbake bug reporting. Users shake their device to capture a screenshot, annotate it with Skia-powered drawing tools, optionally record audio, and submit a bug report.

Installation

# yarn
yarn add @shakenbake/react-native

# npm
npm install @shakenbake/react-native

Peer Dependencies

The following peer dependencies must be installed in your project:

npx expo install react-native-shake react-native-view-shot @shopify/react-native-skia

| Package | Purpose | |---------|---------| | react-native-shake | Device shake detection trigger | | react-native-view-shot | Screenshot capture | | @shopify/react-native-skia | GPU-accelerated annotation overlay | | @shakenbake/core | Shared types and plugin interfaces |

Usage

Wrap your app with ShakeNbakeProvider and supply a destination adapter (e.g. @shakenbake/linear):

import { ShakeNbakeProvider } from '@shakenbake/react-native';
import { LinearAdapter } from '@shakenbake/linear';

const linear = new LinearAdapter({
  apiKey: process.env.LINEAR_API_KEY!,
  teamId: 'YOUR_TEAM_ID',
  projectId: 'YOUR_PROJECT_ID', // recommended to avoid default/backlog routing
});

export default function App() {
  return (
    <ShakeNbakeProvider
      config={{
        enabled: true,
        destination: linear,
      }}
    >
      {/* your app content */}
    </ShakeNbakeProvider>
  );
}

When the user shakes the device, the SDK captures a screenshot, opens an annotation overlay, and presents a report form pre-filled with device and app context.

Linear Team vs Project vs URL Slug

Linear issue links are formatted as:

https://linear.app/<workspace-slug>/issue/TWI-123

  • <workspace-slug> is the workspace URL slug, not a project.
  • TWI-123 indicates the Twinklin team key (TWI) created the issue.
  • Project assignment is controlled by projectId.

Always pass both teamId and projectId to avoid default/backlog routing:

const linear = new LinearAdapter({
  apiKey: process.env.LINEAR_API_KEY!,
  teamId: process.env.LINEAR_TEAM_ID!,
  projectId: process.env.LINEAR_PROJECT_ID!,
});

Troubleshooting

react-native-shake autolinking in Expo monorepos

In monorepo setups, react-native-shake strict package exports may prevent the React Native autolinking discovery from resolving the module. If you see autolinking errors during npx expo prebuild, create a react-native.config.js in your app root:

const path = require('path');

module.exports = {
  dependencies: {
    'react-native-shake': {
      root: path.resolve(__dirname, '../../node_modules/react-native-shake'),
    },
  },
};

After adding or updating native dependencies, rebuild with:

npx expo prebuild --clean

Note: react-native-shake requires native modules and is not supported in Expo Go. You must use an Expo development build (npx expo run:ios or npx expo run:android).

Simulator-safe setup (recommended)

On simulators, shake gestures can conflict with the development menu. Disable the built-in shake trigger and use a manual trigger button:

<ShakeNbakeProvider
  config={{
    enabled: true,
    destination: linear,
    enableShakeTrigger: false,
  }}
>
  <App />
</ShakeNbakeProvider>

This keeps physical devices working normally while avoiding simulator NativeEventEmitter issues.

Runtime detection behavior

The SDK now performs runtime checks around react-native-shake:

  • If native RNShake is unavailable, shake activation is skipped (no crash).
  • If react-native-shake throws NativeEventEmitter errors in the current runtime, shake activation is skipped.
  • If config.enableShakeTrigger === false, the built-in shake trigger is not registered.

You may see logs such as:

  • [ShakeNbake] iOS dev runtime detected; shake trigger disabled (use manual trigger)
  • [ShakeTrigger] Native RNShake module not found; shake trigger disabled for this runtime

These are expected in simulator/dev flows when shake is disabled or unsupported.

If you still see NativeEventEmitter errors after upgrading

Your app is likely running a stale mixed node_modules state. Reset and reinstall:

rm -rf node_modules
yarn install

Then restart Metro with cache clear:

npx expo start --dev-client -c

Android GL/Skia screenshot capture

On Android, react-native-view-shot may produce blank or incomplete screenshots when GL-rendered surfaces (Skia, MapView, camera previews) are present. The SDK automatically enables handleGLSurfaceViewOnAndroid on Android to ensure these surfaces are captured correctly. No manual configuration is needed.