onPress={() => {
          let currentOffset = typeof historyOffset === 'undefined' ? -1 : historyOffset;
          currentOffset += 1;
          const index = history.length - 1 - currentOffset;
          if (history[index]) {