react-native-device-info - v15.0.1
    Preparing search index...

    Function useDeviceName

    • React hook that resolves with the human-readable device name when it becomes available.

      Compatibility: iOS ✅ Android ✅ Windows ✅ Web ❌ visionOS ✅

      Returns AsyncHookResult<string>

      function Greeting() {
      const { result: name } = useDeviceName();
      return <Text>Hello from {name}</Text>;
      }