airbnb / airbnb/native-navigation

Screen Flickering problem

Open
#125 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
3.1k
Forks
173
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/229427/27944438-746c68ba-6319-11e7-8a2f-4a4062e656b2.png)

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 (





);
}
}

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the push from NavigationExampleScreen using the fullscreen Walkthrough1.png asset, then inspect the native-navigation screen transition and image-rendering path. Done means pushing the screen no longer exposes the background color before the image is rendered; no implementation file or test is named in the report, so locating those paths is part of the investigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.