Skip to content

geroale/react-native-background-remover

 
 

Repository files navigation

react-native-background-remover

This package is a React Native package that uses MLKit on Android and Vision on iOS to remove the background from an image.

ScreenRecording_07-13-2024.18-07-38_1.MP4

Installation

yarn add react-native-background-remover

Usage

import { removeBackground } from 'react-native-background-remover';

// You can get the imageURI from the camera or the gallery.
const backgroundRemovedImageURI = removeBackground(imageURI);

Note: You need to use a real device on iOS to use this package. Otherwise, it will throw a warning and return the original image. You can still use an emulator on Android.

Note: This only works with iOS 15 and above. Otherwise, you will get an error.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

About

A React Native lib that removes background from images

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Kotlin 29.0%
  • TypeScript 20.7%
  • Swift 16.9%
  • JavaScript 10.9%
  • Ruby 9.5%
  • Objective-C 7.6%
  • Other 5.4%