mirror of
https://github.com/zhigang1992/react-native-gifted-chat.git
synced 2026-01-12 17:42:27 +08:00
feat add util isExpo fn
This commit is contained in:
committed by
GitHub
parent
8f18474e71
commit
95bf7e82a4
@@ -18,3 +18,9 @@ export function isSameDay(currentMessage = {}, diffMessage = {}) {
|
||||
export function isSameUser(currentMessage = {}, diffMessage = {}) {
|
||||
return !!(diffMessage.user && currentMessage.user && diffMessage.user._id === currentMessage.user._id);
|
||||
}
|
||||
|
||||
export function isExpo() {
|
||||
return global.__exponent || global.__expo;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user