mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Back out D16434402, D16434634
Summary: build-break fbshipit-source-id: d0786ba78689113be543535bd117c3d7f1de9996
This commit is contained in:
1 parent
17f8e5810f
commit
136dde359c
7 files changed
+19
-145
No files matched your search
@@ -16,17 +16,11 @@ function upperCaseFirst(inString: string): string {
|
||||
return inString[0].toUpperCase() + inString.slice(1);
|
||||
}
|
||||
|
||||
function toSafeJavaString(
|
||||
input: string,
|
||||
shouldUpperCaseFirst?: boolean,
|
||||
): string {
|
||||
const parts = input.split('-');
|
||||
|
||||
if (shouldUpperCaseFirst === false) {
|
||||
return parts.join('');
|
||||
}
|
||||
|
||||
return parts.map(upperCaseFirst).join('');
|
||||
function toSafeJavaString(input: string): string {
|
||||
return input
|
||||
.split('-')
|
||||
.map(upperCaseFirst)
|
||||
.join('');
|
||||
}
|
||||
|
||||
function getImports(component: ComponentShape): Set<string> {
|
||||
|
||||
Reference in new issue
Block a user