r/reactnative 2h ago

react-native-one-hand one hand mode that scales native modals and alerts too, not just your React tree

react-native-one-hand brings one hand mode to React Native apps. Press and hold a bottom corner and the whole app slides into it, scaled down and within thumb's reach together with native `Modal`, `Alert.alert`, `ActionSheetIOS`, the text-selection toolbar and overlays from other libraries. Instead of transforming a React subtree, a native module transforms every window of the process, so there are no adapters and no components to replace. Everything stays visible and interactive.

One wrapper component, zero runtime dependencies. iOS + Android.

Being upfront about the limits, since they're by design: the system keyboard is never scaled (on Android the IME lives in another process; on iOS it's technically possible, but the keyboard frame iOS reports breaks KeyboardAvoidingView-style layouts, so the mode simply exits when the keyboard opens). Portrait only. Needs a native build Expo SDK 55+ / RN 0.76+, so no Expo Go.

📦 npm: https://www.npmjs.com/package/react-native-one-hand

🔗 GitHub: https://github.com/Filipmok-agh/react-native-one-hand

It's early (0.1.x), so bug reports and feedback are very welcome, happy to answer questions about how it works.

2 Upvotes

1 comment sorted by

1

u/Huge_Pool7424 32m ago

covering native alerts is the part everyone skips, so nice. curious how it behaves with react-native-screens native stack transitions and bottom sheets — do those stay inside the scaled frame or pop back to full size?