Adds os and version to react-native userAgent.

This commit is contained in:
damencho 2017-09-18 13:21:10 -05:00 committed by Lyubo Marinov
parent 241dc3b147
commit 6d62e91ff1
1 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,8 @@ import Iterator from 'es6-iterator';
import BackgroundTimer from 'react-native-background-timer'; import BackgroundTimer from 'react-native-background-timer';
import 'url-polyfill'; // Polyfill for URL constructor import 'url-polyfill'; // Polyfill for URL constructor
import { Platform } from '../../react';
import Storage from './Storage'; import Storage from './Storage';
/** /**
@ -323,7 +325,8 @@ function _visitNode(node, callback) {
} }
} }
navigator.userAgent = userAgent; navigator.userAgent
= `${userAgent} (${Platform.OS} ${Platform.Version})`;
})(); })();
} }