SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

refactor(PermissionsAndroid): Use the TypeScript key in syntax to restrict permissions and types of results (#47299)

Summary:
Changelog:
[General][Added] Use the TypeScript key in syntax to restrict permissions and types of results

 - Use key in 'GRANTED' | 'DENIED' | 'NEVER_ASK_AGAIN for RESULTS constants to ensure that only these values are allowed

 - Use a detailed list of permission names for PERMISSIONS constants to restrict the type of key

Pull Request resolved: https://github.com/facebook/react-native/pull/47299

Reviewed By: yungsters

Differential Revision: D65480410

Pulled By: tdn120

fbshipit-source-id: ec23750d72ede0ba6ed96e80c35242da08b2508e
Q
qnnp committed
0244710c4b1e5016069ec9f7b8e7116ff51f59f1
Parent: e0be2ef
Committed by Facebook GitHub Bot <[email protected]> on 11/6/2024, 4:45:18 PM