Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen Flickering problem #125

Open
keithics opened this issue Jul 7, 2017 · 0 comments
Open

Screen Flickering problem #125

keithics opened this issue Jul 7, 2017 · 0 comments

Comments

@keithics
Copy link

keithics commented Jul 7, 2017

There seems to be a problem when pushing a screen with a fullscreen image.
In split second the screen's background color is shown before the image is fully rendered which causes the flickering.
blink1

  import React, {
    Component,
    PropTypes,
  } from 'react';
  import {
    Dimensions,
      StyleSheet,
      TouchableHighlight,
    Image,
    View,
  } from 'react-native';

  import Navigator from 'native-navigation';

  const { width,height } = Dimensions.get('window');
  const styles = StyleSheet.create({
      canvas: {
          width: width,
          height: height
      }
  })

  export default class NavigationExampleScreen extends Component {
      _onPress = () => {
          Navigator.push('ScreenOne')
      };

      render() {
      return (
          <View>
              <TouchableHighlight onPress={this._onPress} underlayColor="white">
              <Image
                  resizeMode="contain"
                  source={require('../assets/images/Walkthrough1.png')}
                  style={styles.canvas} />
              </TouchableHighlight>
          </View>
      );
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant