2025-05-04 16:45:38 +07:00
|
|
|
import { React, ReactNative } from '@revenge-mod/react'
|
|
|
|
|
|
2025-05-07 01:21:27 +07:00
|
|
|
import AssetIcon from '~/components/AssetIcon'
|
2025-05-05 21:16:44 +07:00
|
|
|
|
|
|
|
|
import { MobileSetting } from '../constants'
|
2025-05-04 16:45:38 +07:00
|
|
|
|
2025-05-07 01:35:54 +07:00
|
|
|
import type { SettingsItem } from '@revenge-mod/discord/settings'
|
2025-05-04 16:45:38 +07:00
|
|
|
|
|
|
|
|
const { major, minor, patch, prerelease } = ReactNative.Platform.constants.reactNativeVersion
|
|
|
|
|
const version = `${major}.${minor}.${patch}${prerelease ? `-${prerelease}` : ''}`
|
|
|
|
|
|
2025-05-04 20:31:20 +07:00
|
|
|
const ReactNativeVersionSetting: SettingsItem = {
|
2025-05-04 16:45:38 +07:00
|
|
|
parent: MobileSetting.REVENGE,
|
|
|
|
|
IconComponent: () => <AssetIcon name="ScienceIcon" />,
|
|
|
|
|
title: () => 'React Native',
|
|
|
|
|
useDescription: () => version,
|
2025-05-05 19:13:00 +07:00
|
|
|
type: 'static',
|
2025-05-04 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default ReactNativeVersionSetting
|