iyegoroff / react-native-image-filter-kit

Various image filters for iOS & Android
MIT License
320 stars 42 forks source link

How to send file path in grayscale extraction without using Image tag #122

Closed viraj-glide closed 2 years ago

viraj-glide commented 2 years ago

<Grayscale style={styles.image} onFilteringError={ ({ nativeEvent }) => dispatch(['show-error', new Error(nativeEvent.message)]) } onExtractImage={({ nativeEvent }) => dispatch(['save-photo', nativeEvent.uri])} extractImageEnabled={true} image={ <Image style={styles.image} source={{ uri: state[1] }} /> } />

Currently I am using above code for extraction but i don't want to use image tag I just want to extract grayscale image from my given uri direct to grayscale component and extract image path

iyegoroff commented 2 years ago

This is not supported, you have to use Image component to extract the file.