How syph3r-d/morseflash_rn_cli works
MorseFlash is a React Native app for sending messages as flashlight Morse signals and receiving them through a camera. Users enter text, convert it to Morse, and transmit timed pulses; on reception, camera brightness changes are analyzed into Morse and decoded as text. The shared utility module handles text/code conversion, while the Android native module controls the torch. The graph reflects sampled implementation; the native bridge’s JavaScript-to-Android connection is inferred from the matching module name and shown as unverified.
Main entry points: Receive.tsx Receive screen · App.tsx Navigation app · Transmit.tsx Transmit screen · NativeFlashlightModule.kt Torch module
Components 12
App navigation
- Navigation app
App.tsx
Morse transmission
- Transmit screen
views/Transmit.tsx - Morse codec
utils/index.ts
Morse reception
- Receive screen
views/Receive.tsx - Target overlay
components/SquareOverlay.tsx
Android flashlight
- Flashlight spec
specs/NativeFlashlight.ts - Native package
android/app/src/main/java/com/morseflash_rn_cli/NativeFlashlightPackage.kt - Torch module
android/app/src/main/java/com/morseflash_rn_cli/NativeFlashlightModule.kt - Android host
android/app/src/main/java/com/morseflash_rn_cli/MainApplication.kt
Other components
- User
- Camera frames
- Device flashlight
Connections 12
- User → Navigation app: uses
README.md - Navigation app → Transmit screen: routes to
App.tsx - Navigation app → Receive screen: routes to
App.tsx - Transmit screen → Morse codec: encodes text
views/Transmit.tsx - Transmit screen → Flashlight spec: calls torch
views/Transmit.tsx - Flashlight spec → Torch module: bridges to
- Android host → Native package: registers
android/app/src/main/java/com/morseflash_rn_cli/MainApplication.kt - Native package → Torch module: provides
android/app/src/main/java/com/morseflash_rn_cli/NativeFlashlightPackage.kt - Torch module → Device flashlight: toggles
android/app/src/main/java/com/morseflash_rn_cli/NativeFlashlightModule.kt - Camera frames → Receive screen: supplies frames
views/Receive.tsx - Receive screen → Target overlay: renders
views/Receive.tsx - Receive screen → Morse codec: decodes Morse
views/Receive.tsx