Skip to content

Conversation

@mfazekas
Copy link
Contributor

@mfazekas mfazekas commented Jul 6, 2022

Implement requestAndroidPermission in typescript.

Steps:

  1. requestAndroidPermission was extracted to a requestAndroidPermission.ts file
  2. index.d.ts now imports the type from the new requestAndroidPermission.ts file, and reexports it.

Doing some trials it looks no tsc is necessary to transpire js to ts code. It looks all recent RN versions bundler understands typescript, so no need to transpire into js - tested with RN 65.2 - see https://github.com/mfazekas/rn-ts-migration

@mfazekas mfazekas merged commit 5218ce9 into main Jul 7, 2022
@mfazekas mfazekas deleted the mfazekas/ts-requestAndroidPermission branch July 7, 2022 03:19
@mfazekas mfazekas mentioned this pull request Jul 13, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants