Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

ReadableMap/ReadableArray getDynamic should be implemented #162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ public String toString() {
return mBackingList.toString();
}

@Override
public Dynamic getDynamic(int index) {
return DynamicFromArray.create(this, index);
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ public ReadableType getType(String name) {
throw new UnsupportedOperationException("Method not implemented");
}

@Override
public Dynamic getDynamic(String name) {
return DynamicFromMap.create(this, name);
}

@Override
public ReadableMapKeySetIterator keySetIterator() {
return new ReadableMapKeySetIterator() {
Expand Down