Code QuizIntermediate

Platform.isPad Constant

Find why this iPad check throws an error.

Codejavascript
import { Platform } from 'react-native';

function getColumns() {
  return Platform.isPad() ? 3 : 1;
}

export default getColumns;

What is the bug with Platform.isPad here?