mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Back out D16434402, D16434634"
Summary: Reverting the revert and fixing the snapshot tests Reviewed By: JoshuaGross Differential Revision: D16467242 fbshipit-source-id: 23ed4122da226ea815d3766098da4400e7ad9442
This commit is contained in:
committed by
Facebook Github Bot
parent
76ff31616e
commit
a24a9b9946
@@ -16,11 +16,17 @@ function upperCaseFirst(inString: string): string {
|
||||
return inString[0].toUpperCase() + inString.slice(1);
|
||||
}
|
||||
|
||||
function toSafeJavaString(input: string): string {
|
||||
return input
|
||||
.split('-')
|
||||
.map(upperCaseFirst)
|
||||
.join('');
|
||||
function toSafeJavaString(
|
||||
input: string,
|
||||
shouldUpperCaseFirst?: boolean,
|
||||
): string {
|
||||
const parts = input.split('-');
|
||||
|
||||
if (shouldUpperCaseFirst === false) {
|
||||
return parts.join('');
|
||||
}
|
||||
|
||||
return parts.map(upperCaseFirst).join('');
|
||||
}
|
||||
|
||||
function getImports(component: ComponentShape): Set<string> {
|
||||
|
||||
Reference in New Issue
Block a user