Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions android/src/main/java/com/reactlibrary/Convert.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ public static ReadableMap toMap(Artist artist) {
}

public static ReadableMap toMap(Track track) {
if (track == null) {
return null;
}
WritableMap map = Arguments.createMap();

map.putDouble("duration", (double) track.duration);
Expand Down