react-native-picker / picker

Picker is a cross-platform UI component for selecting an item from a list of options.
MIT License
1.53k stars 289 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 naumandevguru closed 8 months ago

naumandevguru commented 8 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 8 months ago

same issue

hau1412 commented 8 months ago

same issue

ahsanfarooq6414 commented 8 months ago

same issue

Naturalclar commented 8 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: