Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instagram like filters using React Native

I have been looking for a way to develop Instagram like filters using React-Native. I have created filters using another mobile framework called Ionic which uses the webview to create apps, but the filters are much too slow. How could I manipulate images to create such filtered effects using react-native.

Cheers

like image 312
user2924127 Avatar asked Dec 09 '22 02:12

user2924127


1 Answers

You can check my react-native-image-filter-kit module. It contains an Instagram like set of filters ported from CSSGram project.

Usage example:

import { Image } from 'react-native'
import { ToasterCompat } from 'react-native-image-filter-kit'

const imageStyle = { width: 320, height: 320 }

const atx = (
  <Image
    style={imageStyle}
    source={{ uri: 'https://una.im/CSSgram/img/atx.jpg' }}
    resizeMode={'contain'}
  />
)

const toasted = <ToasterCompat image={atx} />

result

like image 193
iyegoroff Avatar answered Dec 11 '22 07:12

iyegoroff