From c4d24f7f7e98fdfa69a0c8a44351375c9f0ab44b Mon Sep 17 00:00:00 2001 From: bgrieder Date: Fri, 6 Nov 2015 22:20:52 +0100 Subject: [PATCH] Note on using ES6 as the target --- react-native/react-native-tests.tsx | 3 +++ react-native/react-native-tests.tsx.tscparams | 2 +- react-native/react-native.d.ts | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/react-native/react-native-tests.tsx b/react-native/react-native-tests.tsx index 4f2ef64d6..7c02ce9ca 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 bc8c2d622..b928cbf7c 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 fe18baa09..bc1926a30 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