Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 778 Bytes

File metadata and controls

19 lines (15 loc) · 778 Bytes

Still in development

React Native Image with Adjustment

This is a component for react native to display images. It inherits all funcionality of the base react native image components, and adds three more props to change image's saturation, brightness and contrast. It also accepts a prop called save.

<ImageWithAdjustment
  brightness={this.state.brightness}
  saturation={this.state.saturation}
  contrast={this.state.contrast}
  src={{ source: [(uri: uri)], width: 1920, height: 1080 }}
  resizeMode="contain"
  onSave={this.onSave}
  save={this.triggerSave}
/>

This component is still being developed, it's not working currently. What you can do, is adapt the code for your given project. Noticed that the component is written on Android side with Java