Skip to content

Commit

Permalink
Remove Expo SDK version mapping for embeds and use latest inste… (fac…
Browse files Browse the repository at this point in the history
…ebook#1139)

Remove Expo SDK version mapping for embeds and use latest instead
  • Loading branch information
rickhanlonii authored Jul 23, 2019
2 parents 478845a + 68e8913 commit ca4187b
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions website/core/RemarkablePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,6 @@ function htmlForCodeBlock(code) {
* that requires a newer Expo SDK release.
*/
const LatestSDKVersion = '26.0.0';
const ReactNativeToExpoSDKVersionMap = {
'0.54': '26.0.0',
'0.52': '25.0.0',
'0.51': '24.0.0',
'0.50': '23.0.0',
'0.49': '22.0.0',
'0.48': '21.0.0',
'0.47': '20.0.0',
'0.46': '19.0.0',
'0.45': '18.0.0',
'0.44': '17.0.0',
'0.43': '16.0.0',
'0.42': '15.0.0',
'0.41': '14.0.0',
};

/**
* Use the SnackPlayer by including a ```SnackPlayer``` block in markdown.
*
Expand Down Expand Up @@ -96,12 +80,6 @@ function SnackPlayer(md) {
const platform = params.platform ? params.platform : 'ios';
const rnVersion = params.version ? params.version : 'next';

// Default to the latest SDK configured above.
const expoVersion =
rnVersion === 'next'
? LatestSDKVersion
: ReactNativeToExpoSDKVersionMap[version] || LatestSDKVersion;

return (
'<div class="snack-player">' +
'<div class="mobile-friendly-snack" style="display: none">' +
Expand All @@ -114,7 +92,6 @@ function SnackPlayer(md) {
data-snack-code="${encodedSampleCode}"
data-snack-platform="${platform}"
data-snack-preview="true"
data-snack-sdk-version="${expoVersion}"
style="
overflow: hidden;
background: #fafafa;
Expand Down

0 comments on commit ca4187b

Please sign in to comment.