-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- `registerCommandListener` documentation was wrong so that is fixed - use `uniqueIdProvider` much as possible so we are not duplicating logic - add `appRegistryService` which makes `componentRegistry` cleaner and also makes testing easier - type return type of `NativeEventsReceiver.ts` correctly - add types to `LayoutTreeParser` - `ComponentRegistry.test.tsx` refactor so it tests only things that is should and not implementation of React Native functions - fix type `center` prop to be required on `LayoutSideMenu` - add missing layout props `topTabs` and `externalComponent` - lots of minor cleaning
- Loading branch information
Showing
21 changed files
with
250 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ComponentProvider, AppRegistry } from 'react-native'; | ||
|
||
export class AppRegistryService { | ||
registerComponent(appKey: string, getComponentFunc: ComponentProvider) { | ||
AppRegistry.registerComponent(appKey, getComponentFunc); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import * as _ from 'lodash'; | ||
|
||
export class UniqueIdProvider { | ||
generate(prefix: string): string { | ||
generate(prefix?: string): string { | ||
return _.uniqueId(prefix); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.