rename module exports from "aliases" to "aliasMap" (#36042)

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

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

Use aliasMap both in parsers and generators instead of using aliasMap in half of the places and aliases in the other.

This would also allow us to introduce "enumMap" more easily in the next commit.

Changelog: [Internal] rename module exports from "aliases" to "aliasMap"

Reviewed By: christophpurrer, cipolleschi

Differential Revision: D42888752

fbshipit-source-id: cf1929fcebde994d07e5c6bda5ab71106d417b21
This commit is contained in:
Vitali Zaidman
2023-02-02 09:58:01 -08:00
committed by Facebook GitHub Bot
parent 2d37f25f29
commit 69494a7b1f
15 changed files with 90 additions and 90 deletions
@@ -447,7 +447,7 @@ module.exports = {
Object.keys(nativeModules).forEach(hasteModuleName => {
const {
aliases,
aliasMap,
excludedPlatforms,
moduleName,
spec: {properties},
@@ -455,7 +455,7 @@ module.exports = {
if (excludedPlatforms != null && excludedPlatforms.includes('android')) {
return;
}
const resolveAlias = createAliasResolver(aliases);
const resolveAlias = createAliasResolver(aliasMap);
const className = `${hasteModuleName}Spec`;
const imports: Set<string> = new Set([