@strata-game-library/react-native-plugin
v1.1.0
Published
React Native plugin for Strata 3D - cross-platform input, device detection, and haptics for mobile games
Maintainers
Readme
@strata/react-native-plugin
React Native plugin for Strata 3D - cross-platform input, device detection, and haptics for mobile games.
📚 Documentation
Full documentation is available at strata.game/mobile/react-native
🏢 Enterprise Context
Strata is the Games & Procedural division of the jbcom enterprise. This plugin is part of a coherent suite of specialized tools, sharing a unified design system and interconnected with sibling organizations like Agentic and Extended Data.
Features
- Device Detection - Identify device type, platform, and performance capabilities
- Input Handling - Unified touch input handling with
StrataInputProvider - Haptic Feedback - Cross-platform vibration with intensity control
- Safe Area Insets - Native safe area detection for notches
- Orientation - Get and set screen orientation
- Performance Mode - Detect low power mode and hardware levels
Installation
npm install @strata/react-native-plugin
cd ios && pod installQuick Start
import { useDevice, useInput, useHaptics } from '@strata/react-native-plugin';
function Game() {
const device = useDevice();
const input = useInput();
const { trigger } = useHaptics();
return (
<View>
<Text>Platform: {device.platform}</Text>
<Button onPress={() => trigger({ intensity: 'medium' })} />
</View>
);
}Related
- Strata Documentation - Full documentation
- Strata Core - Main library
- Capacitor Plugin - Capacitor version
License
MIT © Jon Bogaty
