Skip to content

Commit 604795b

Browse files
authored
feat: Added platform-agnostic entry point (#426)
Added a platform-agnostic entry point (except for Android/iOS) that will show a warning for unsupported platforms (instead of making them crash).
1 parent bb0c34d commit 604795b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/DateTimePickerModal.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from "react";
2+
import { Platform } from "react-native";
3+
4+
export default function DateTimePickerModal() {
5+
React.useEffect(() => {
6+
console.warn(`DateTimePicker is not supported on: ${Platform.OS}`);
7+
}, []);
8+
return null;
9+
}

0 commit comments

Comments
 (0)