mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Merge pull request #23293 from osunnarvik/parse_simulator_list
Parse simulator list
This commit is contained in:
@@ -41,7 +41,7 @@ function findMatchingSimulator(simulators, simulatorString) {
|
||||
var match;
|
||||
for (let version in devices) {
|
||||
// Making sure the version of the simulator is an iOS or tvOS (Removes Apple Watch, etc)
|
||||
if (!version.startsWith('iOS') && !version.startsWith('tvOS')) {
|
||||
if (!version.includes('iOS') && !version.includes('tvOS')) {
|
||||
continue;
|
||||
}
|
||||
if (simulatorVersion && !version.endsWith(simulatorVersion)) {
|
||||
|
||||
Reference in New Issue
Block a user