You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/client/web/plugins/com.msgbyte.env.rn/src/DeviceInfoPanel.tsx

21 lines
498 B
TypeScript

import React from 'react';
import { Translate } from './translate';
interface WindowRnDeviceInfo {
version: string;
readableVersion: string;
}
export const DeviceInfoPanel: React.FC = React.memo(() => {
const deviceInfo: WindowRnDeviceInfo = (window as any).__rnDeviceInfo ?? {};
return (
<div>
<div>
{Translate.clientVersion}: {deviceInfo.version}(
{deviceInfo.readableVersion})
</div>
</div>
);
});
DeviceInfoPanel.displayName = 'DeviceInfoPanel';