We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d18e0c commit c672240Copy full SHA for c672240
android/src/main/java/com/ting/TingModule.kt
@@ -162,7 +162,7 @@ class TingModule internal constructor(context: ReactApplicationContext) : TingSp
162
}
163
164
private fun getDuration(options: ReadableMap): Int {
165
- return if (options.hasKey("duration")) (options.getInt("duration") * 1000) else 3000
+ return if (options.hasKey("duration")) (options.getDouble("duration") * 1000).toInt() else 3000
166
167
168
private fun getContainerView(
0 commit comments