Skip to content
Lucent
SEARCH LUCENT

Search guides, APIs, and examples.

GitHub

Very early and experimental. The language, the generated native code and every package API change without notice. Do not use Lucent in production.

Examples that call iOS and Android

Ports of popular Expo and community modules, each one Lucent module for both platforms, running in the repository's example apps.

ExampleReplacesWhat to look at
Clipboardexpo-clipboardThe smallest, to start with: one SDK class per platform.
Locationexpo-locationA CoreLocation delegate, an Android listener, and updates sent to a JS callback.
Network state@react-native-community/netinfoThe Network framework's C API with a block; an Android class extended in Lucent.
Local authenticationexpo-local-authenticationA completion handler awaited as a promise, and NSError out-parameters.
Secure storeexpo-secure-storeKeychain C functions, the Android Keystore, and a module shipped as a package.
Hapticsexpo-hapticsMain-thread UIKit calls, and Android API-level checks.

Each is one module for both platforms. They run in the repository's example apps, bare and Expo. On the iOS simulator and the Android emulator, they pass the same checks as the packages they replace.

They haven't been tested on physical devices yet (roadmap).