Skip to content

Commit 993928c

Browse files
authored
fix(android): child argument types in addView methods (#857)
1 parent 1e61a59 commit 993928c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/src/fabric/java/com/reactnativepagerview/PagerViewViewManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class PagerViewViewManager : ViewGroupManager<NestedScrollableHost>(), RNCViewPa
8888
return host
8989
}
9090

91-
override fun addView(host: NestedScrollableHost, child: View?, index: Int) {
91+
override fun addView(host: NestedScrollableHost, child: View, index: Int) {
9292
PagerViewViewManagerImpl.addView(host, child, index)
9393
}
9494

android/src/paper/java/com/reactnativepagerview/PagerViewViewManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class PagerViewViewManager : ViewGroupManager<NestedScrollableHost>() {
6969
return host
7070
}
7171

72-
override fun addView(host: NestedScrollableHost, child: View?, index: Int) {
72+
override fun addView(host: NestedScrollableHost, child: View, index: Int) {
7373
PagerViewViewManagerImpl.addView(host, child, index)
7474
}
7575

0 commit comments

Comments
 (0)