Use latest simulator by not specifying the OS version
Summary:Appetize asked for this so they can better support us, since they will usually have more simulators available for the latest versions. Closes https://github.com/facebook/react-native/pull/7061 Differential Revision: D3196110 Pulled By: mkonicek fb-gh-sync-id: 2406ab6e1ee352f0148957e851d7f483a2182f90 fbshipit-source-id: 2406ab6e1ee352f0148957e851d7f483a2182f90
This commit is contained in:
parent
5e27ff2b27
commit
1c6d815a88
|
@ -498,8 +498,8 @@ var Modal = React.createClass({
|
|||
var appParams = {route: metadata.title};
|
||||
var encodedParams = encodeURIComponent(JSON.stringify(appParams));
|
||||
var url = metadata.platform === 'android'
|
||||
? `https://appetize.io/embed/q7wkvt42v6bkr0pzt1n0gmbwfr?device=nexus5&scale=65&autoplay=false&orientation=portrait&osVersion=6.0&deviceColor=white¶ms=${encodedParams}`
|
||||
: `https://appetize.io/embed/7vdfm9h3e6vuf4gfdm7r5rgc48?device=iphone6s&scale=60&autoplay=false&orientation=portrait&osVersion=9.2&deviceColor=white¶ms=${encodedParams}`;
|
||||
? `https://appetize.io/embed/q7wkvt42v6bkr0pzt1n0gmbwfr?device=nexus5&scale=65&autoplay=false&orientation=portrait&deviceColor=white¶ms=${encodedParams}`
|
||||
: `https://appetize.io/embed/7vdfm9h3e6vuf4gfdm7r5rgc48?device=iphone6s&scale=60&autoplay=false&orientation=portrait&deviceColor=white¶ms=${encodedParams}`;
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
Loading…
Reference in New Issue