-
Notifications
You must be signed in to change notification settings - Fork 394
Closed
Description
Bug
The latest version of this template uses Typescript 3.8.3. TS 3.8 has a few new features: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html
For instance the "Top-Level await" feature does not work using this template. The template should either not use TS 3.8 or make sure all features work.
Environment info
react-native info output:
System:
OS: macOS 10.15.4
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 103.57 MB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.14.1 - ~/.nvm/versions/node/v12.14.1/bin/node
Yarn: 1.22.0 - ~/.nvm/versions/node/v12.14.1/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.14.1/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.2
System Images: android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.6 AI-192.7142.36.36.6308749
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_242 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.1 => 0.62.1
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
- npx react-native init MyApp --template react-native-template-typescript
- Copy top level await example from https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html to App.tsx
...
Describe what you expected to happen:
- TS 3.8 features to work
Reproducible sample code
not needed i think since the repo steps are so simple.
Metadata
Metadata
Assignees
Labels
No labels

