Nosmai  Effects Nosmai  Moderation Nosmai Try-ons coming soon
Docs menu React Native
How-to guide

Blur the background in React Native

Enable subject segmentation and set normalized blur strength through the Nosmai React Native API.

Platform React Native SDK version 1.0.0 Updated Aug 19, 2026 Time 4 min

Prerequisites

Enable blur

if (await NosmaiCameraSdk.isAdvancedFiltersEnabled()) {
  await NosmaiCameraSdk.setBackground({
    mode: 'blur',
    blurStrength: 0.55,
  });
}

blurStrength uses 0 through 1 in the React Native API.

Disable blur

await NosmaiCameraSdk.clearBackground();

Verify it worked

The native preview should keep the subject visible while blurring the scene behind it.

Common errors

SymptomFix
Promise resolves but nothing changesWait for onReady and verify advanced filters are enabled
Preview remounts while draggingKeep a stable NosmaiCameraView and update only the native value
Low frame rate in DebugMeasure a Release build on a physical device

Next steps

References

Was this page helpful?

Your response helps us prioritize documentation improvements.

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