Skip to content

Instantly share code, notes, and snippets.

@ayazzali
Last active June 15, 2018 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayazzali/203aeafef77e17678753890019c1e30a to your computer and use it in GitHub Desktop.
Save ayazzali/203aeafef77e17678753890019c1e30a to your computer and use it in GitHub Desktop.
  • компоненты с больших букв
  • this handleClick
    • bind
  • ({qwe : !prSt.qwe}))

Не знаю:

как добавить TypeScript в уже готовый RN проект

  • follow to the 'test' section (if you do not need it) https://github.com/Microsoft/TypeScript-React-Native-Starter
  • чтоб можно было больше ничего не менять - юзать старые js компоненты uncomment --allowJs in tsconfig.json
    • вот такую ошибку решает: severity: 'Error' message: 'Could not find a declaration file for module implicitly has an 'any' type.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment