Skip to content

Commit

Permalink
Merge branch 'main' into feat/drag-events
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 authored Jan 29, 2025
2 parents 4c5a19c + c6d8b8f commit 7f55b25
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ class TrueSheetViewManager : ViewGroupManager<TrueSheetView>() {
for (i in 0 until minOf(sizes.size(), 3)) {
when (sizes.getType(i)) {
ReadableType.Number -> result.add(sizes.getDouble(i))
ReadableType.String -> result.add(sizes.getString(i))
// React Native < 0.77 used String for getString, but 0.77
// changed it to String?. Suppress the error for older APIs.
@Suppress("UNNECESSARY_SAFE_CALL")
ReadableType.String -> sizes.getString(i)?.let { result.add(it) }
else -> Log.d(TAG, "Invalid type")
}
}
Expand Down

0 comments on commit 7f55b25

Please sign in to comment.