-
Notifications
You must be signed in to change notification settings - Fork 395
React Native 69 will use iOS 12.4 as minimal version but we still recommends es2017 in TS config #275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We can upgrade, but I'm not sure if it matters so much as it's babel and https://github.com/facebook/metro/tree/main/packages/metro-react-native-babel-preset that transpiles the code before it actually runs on the device. But I might be wrong. |
@radko93 Babel can make impact for new syntax that can't be Polyfilled for example: const value = 100_000_000; // numeric separators
async function asynFn(){ await my(); } // async/await
function* generator(){ yield i; } // Generator Function but in case of new methods, what Babel can matters here: Object.fromEntries(...)
// ^^^^^^^^^^ TS2550: Property 'fromEntries' does not exist on type 'ObjectConstructor'.
// Do you need to change your target library?
// Try changing the 'lib' compiler option to 'es2019' or later. |
Then probably we can change it once we update for 0.69. |
* feat: update to 0.69.0 closes #275 * chore: update README
We still recommend to use
lib: es2017
in ts config, but a new minimaliOS
version for[email protected]
is12.4
So, can we update
es2017
=>es2019
as alles2019
features implemented inHermes
,iOS 12.4
andjsc-android
? (see "Compare table")Links
11
=>12.4
commit: facebook/react-native@982ca30The text was updated successfully, but these errors were encountered: