stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
20 lines • 531 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useRtlMirrorSwitchStyle = useRtlMirrorSwitchStyle;
var _react = require("react");
var _reactNative = require("react-native");
function useRtlMirrorSwitchStyle() {
var isRTL = _reactNative.I18nManager.isRTL;
return (0, _react.useMemo)(() => {
if (_reactNative.Platform.OS !== 'ios' || !isRTL) {
return {};
}
return {
transform: [{
scaleX: -1
}]
};
}, [isRTL]);
}
//# sourceMappingURL=rtlMirrorSwitchStyle.js.map