Effects React Native
Effects / Guides / Beauty filters / React Native

Apply a beauty filter in React Native with Nosmai Effects

Updated August 19, 2026

Control Nosmai skin smoothing, whitening, teeth whitening, and sharpening through the React Native TurboModule.

Prerequisites

Apply a subtle preset

await NosmaiCameraSdk.setSkinSmoothing(0.35);
await NosmaiCameraSdk.setSkinWhitening(0.15);
await NosmaiCameraSdk.setTeethWhitening(0.20);
await NosmaiCameraSdk.setSharpening(0.15);

Parameter ranges

All four values use 0 through 1, with 0 as the disabled value. Clamp slider input before calling the TurboModule and ignore a completed Promise if the camera screen has already unmounted.

Reset beauty

await NosmaiCameraSdk.clearBeauty();

clearBeauty() clears skin beauty, makeup, reshaping, and eye color. It preserves color controls, package slots, and manual backgrounds.

Verify it worked

Change smoothing from 0 to 0.35 while the camera view remains mounted. The native preview should update without a React component remount.

Common errors

SymptomCauseFix
Promise rejects before preview appearsProcessing has not startedAwait initialization, mount the view, then wait for onReady
Changes are lost after Fast RefreshNative state and JavaScript lifecycle were reset differentlyRun full cleanup and reopen the screen during development
Preview performance fallsDevelopment tooling or multiple face features add loadVerify a Release build on a physical device

Next steps

References

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved