// @flow
import type { BoardType } from '../../types';
import type { TrelloBoardType } from '../../types/Scrumble';

export default (board: TrelloBoardType): BoardType => {
  const image = board.prefs.backgroundImageScaled
    ? board.prefs.backgroundImageScaled.find(image => image.width > 760).url
    : null;
  return {
    id: board.id,
    name: board.name,
    background: {
      color: board.prefs.backgroundColor,
      image,
      brightness: board.prefs.backgroundBrightness,
    },
  };
};

@@ -2,16 +2,59 @@
 / @flow%0A
+import %7B Dimensions %7D from 'react-native';%0A
 import t
@@ -330,12 +330,40 @@
 th %3E
- 760
+= Dimensions.get('window').width
 ).ur

Optimize Trello image width