Skip to content

Commit

Permalink
refactor(react-native): remove react-native-device-info as optional d…
Browse files Browse the repository at this point in the history
…ependency (#1035)

Co-authored-by: Vishal Narkhede <[email protected]>
  • Loading branch information
khushal87 and vishalnarkhede authored Aug 31, 2023
1 parent 44ff70c commit 13c6da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
17 changes: 0 additions & 17 deletions packages/react-native-sdk/src/utils/device-info/libs.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/react-native-sdk/src/utils/setClientDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
setOSInfo,
SfuModels,
} from '@stream-io/video-client';
import { getDeviceInfoLib } from './device-info/libs';
import { Platform } from 'react-native';
import { version } from '../../version';
import RNDeviceInfo from 'react-native-device-info';

const [major, minor, patch] = version.split('.');

Expand All @@ -18,7 +18,7 @@ export const setClientDetails = () => {
patch,
});

const deviceInfo = getDeviceInfoLib();
const deviceInfo = RNDeviceInfo;

setOSInfo({
name: Platform.OS,
Expand Down

0 comments on commit 13c6da4

Please sign in to comment.