code: function iterator2array(it) {
      // workaround around https://github.com/instea/react-native-popup-menu/issues/41#issuecomment-340290127
      var arr = [];
  
      for (var next = it.next(); !next.done; next = it.next()) {
        arr.push(next.value);
      }
  
      return arr;
    }
docs: Converts iterator to array