Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React-Native-image-picker changes bottom tabs text colors

$
0
0

I have faced a kind of problem with react-native-image-picker.

On iOS, when user opens Image picker (doesn't matter whether to pick image or press "Cancel"), after closing, bottoms tabs wix/react-native-navigation text color changes to blue.

Android works well.

I have tried to use mergeOptions() func to change it back directly, but it didn't work, maybe I have done something wrong, but nevertheless I'm in deadlock with this problem.

Here is how image-picker func looks:

    ImagePicker.showImagePicker({ title: 'Pick photo' }, res => {
      if (res.didCancel) {
        console.log('User cancelled');
      } else if (res.error) {
        console.log('Error', res.error);
      } else {
        this.setState({
          fileType: res.type,
          fileName: res.fileName,
          uri: res.uri,
        });
        this.postAvatarImage();
      }
    });
  };

Thanks in advance, hope you can help me.


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>