diff --git a/react-native/react-native-tests.tsx b/react-native/react-native-tests.tsx index 4f2ef64d62..7c02ce9cad 100644 --- a/react-native/react-native-tests.tsx +++ b/react-native/react-native-tests.tsx @@ -1,6 +1,9 @@ /* +Note: This must be compiled with the target set to ES6 + + The content of index.io.js could be something like diff --git a/react-native/react-native-tests.tsx.tscparams b/react-native/react-native-tests.tsx.tscparams index bc8c2d622c..b928cbf7c2 100644 --- a/react-native/react-native-tests.tsx.tscparams +++ b/react-native/react-native-tests.tsx.tscparams @@ -1 +1 @@ ---target es6 --noImplicitAny --jsx react +--target ES6 --noImplicitAny --experimentalDecorators --jsx react diff --git a/react-native/react-native.d.ts b/react-native/react-native.d.ts index fe18baa098..bc1926a304 100644 --- a/react-native/react-native.d.ts +++ b/react-native/react-native.d.ts @@ -7,6 +7,7 @@ // // This work is mostly based on the work made by Bernd Paradies: https://github.com/bparadie // +// These definitions are meant to be used with the compiler target set to ES6 // // WARNING: this work is very much beta: // -it may be missing react-native definitions