react-native-picker / picker

Picker is a cross-platform UI component for selecting an item from a list of options.
MIT License
1.45k stars 273 forks source link

Facing Error when create debug app build: public record ReactPickerLocalData(int height) { ^ (use -source 16 or higher to enable records) #556

Closed NaumanZafar007 closed 3 months ago

NaumanZafar007 commented 3 months ago

Error Log: public record ReactPickerLocalData(int height) { ^ (use -source 16 or higher to enable records)

Code: package com.reactnativecommunity.picker; public record React Picker LocalDate(int height) { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ReactPickerLocalData that = (ReactPickerLocalData) o; return height == that.height; } @Override public String toString() { return "RectPickerLocalData{" + "height=" + height + '}'; } }

tbc-usamabinishaq commented 3 months ago

same issue

hau1412 commented 3 months ago

same issue

ahsanfarooq6414 commented 3 months ago

same issue

Naturalclar commented 3 months ago

:tada: This issue has been resolved in version 2.7.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: