Skip to content

Commit

Permalink
Corrected crash from F8MapView (fbsamples#1)
Browse files Browse the repository at this point in the history
When the user accesses for the first time without connection, and opens the Map tab, the app crashes and never recover (even with internet).
  • Loading branch information
jpros authored and frantic committed Apr 26, 2016
1 parent 3ee8bf0 commit 9fe3092
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/tabs/maps/F8MapView.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,20 @@ class F8MapView extends React.Component {

render() {
const {map1, map2} = this.props;


return (
<View style={styles.container}>
<ListContainer
title="Maps"
backgroundImage={require('./img/maps-background.png')}
backgroundColor={'#9176D2'}>
<PureListView
title={map1.name}
title='Overview'
renderEmptyList={() => <MapView map={map1} />}
/>
<PureListView
title={map2.name}
title='Developer Garage'
renderEmptyList={() => <MapView map={map2} />}
/>
</ListContainer>
Expand Down

0 comments on commit 9fe3092

Please sign in to comment.