Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 71fe648

Browse files
Merge pull request #72 from smartlogic/platform_select_mock
Implement Platform.select in the Mock
2 parents 2d2b7eb + c63d379 commit 71fe648

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/plugins/Platform.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const Platform = {
1212
Platform.OS = os;
1313
},
1414

15+
select(objs) {
16+
return objs[Platform.OS];
17+
},
18+
1519
/**
1620
* Exposed in react-native-mock for testing purposes. Not part of real API.
1721
*/

0 commit comments

Comments
 (0)