Skip to content

Commit 616eaf2

Browse files
authoredJul 1, 2019
chore: fix grammar in warning (react-native-community#453)
* chore: fix grammar in warning * adjust wording
1 parent 5199d6a commit 616eaf2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
 

‎packages/platform-android/src/link/warnAboutManuallyLinkedLibs.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function warnAboutManuallyLinkedLibs(
3636

3737
if (installedModules.length) {
3838
logger.error(
39-
`React Native CLI uses autolinking for native dependencies, but following modules are linked manually: \n${installedModules
39+
`React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: \n${installedModules
4040
.map(
4141
x =>
4242
` - ${chalk.bold(x)} ${chalk.dim(
@@ -45,7 +45,9 @@ export default function warnAboutManuallyLinkedLibs(
4545
)
4646
.join(
4747
'\n',
48-
)}\nThis is likely to happen when upgrading React Native from version lower than 0.60 to 0.60 or later. Please unlink them as they are likely to cause build failures. You can do so with "react-native unlink" command as shown above. If a library is not compatible with autolinking yet, please ignore this warning and notify the library maintainers.`,
48+
)}\nThis is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.\nRead more about autolinking: ${chalk.dim.underline(
49+
'https://github.com/react-native-community/cli/blob/master/docs/autolinking.md',
50+
)}`,
4951
);
5052
}
5153
}

‎packages/platform-ios/src/link/warnAboutManuallyLinkedLibs.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function warnAboutManuallyLinkedLibs(
3636

3737
if (installedModules.length) {
3838
logger.error(
39-
`React Native CLI uses autolinking for native dependencies, but following modules are linked manually: \n${installedModules
39+
`React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: \n${installedModules
4040
.map(
4141
x =>
4242
` - ${chalk.bold(x)} ${chalk.dim(
@@ -45,7 +45,9 @@ export default function warnAboutManuallyLinkedLibs(
4545
)
4646
.join(
4747
'\n',
48-
)}\nThis is likely to happen when upgrading React Native from version lower than 0.60 to 0.60 or later. Please unlink them as they are likely to cause build failures. You can do so with "react-native unlink" command as shown above. If a library is not compatible with autolinking yet, please ignore this warning and notify the library maintainers.`,
48+
)}\nThis is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.\nRead more about autolinking: ${chalk.dim.underline(
49+
'https://github.com/react-native-community/cli/blob/master/docs/autolinking.md',
50+
)}`,
4951
);
5052
}
5153
}

0 commit comments

Comments
 (0)
Please sign in to comment.