mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore(): make lint happy
This commit is contained in:
@@ -179,8 +179,8 @@ function initializeNativeClasses() {
|
||||
|
||||
public onViewRecycled(holder: androidx.viewpager2.adapter.FragmentViewHolder): void {
|
||||
super.onViewRecycled(holder);
|
||||
if (holder.getLayoutPosition) {
|
||||
const position = holder.getLayoutPosition();
|
||||
if ((holder as any).getLayoutPosition) {
|
||||
const position = (holder as any).getLayoutPosition();
|
||||
const tabItems = this.owner.items;
|
||||
const tabItem = tabItems ? tabItems[position] : null;
|
||||
if (tabItem) {
|
||||
|
||||
@@ -181,8 +181,8 @@ function initializeNativeClasses() {
|
||||
|
||||
public onViewRecycled(holder: androidx.viewpager2.adapter.FragmentViewHolder): void {
|
||||
super.onViewRecycled(holder);
|
||||
if (holder.getLayoutPosition) {
|
||||
const position = holder.getLayoutPosition();
|
||||
if ((holder as any).getLayoutPosition) {
|
||||
const position = (holder as any).getLayoutPosition();
|
||||
const tabItems = this.owner.items;
|
||||
const tabItem = tabItems ? tabItems[position] : null;
|
||||
if (tabItem) {
|
||||
|
||||
Reference in New Issue
Block a user