Function
Static Public Summary | ||
public |
Get default Locale from platform - TODO |
|
public |
injectIntl(options: Object) Decorator to inject React Intl API |
|
public |
mountWithIntl(node: Component, context: Object, messages: Object, locale: string): * Mount the node with Intl provider context. |
|
public |
shallowWithIntl(node: ReactComponent, context: Object, messages: Object, locale: string): * Create a shadow renderer that wraps a node with Intl provider context. |
|
public |
toJS() Decorator to convert ImmutableJS props to JavaScript props |
Static Public
public getLocale(): string source
import {getLocale} from 'RNBoilerplate/src/Shared/utils.js'
Get default Locale from platform - TODO
public injectIntl(options: Object) source
import {injectIntl} from 'RNBoilerplate/src/Shared/utils.js'
Decorator to inject React Intl API
Params:
Name | Type | Attribute | Description |
options | Object | React Intl Options |
public mountWithIntl(node: Component, context: Object, messages: Object, locale: string): * source
import {mountWithIntl} from 'RNBoilerplate/src/Shared/intl-enzyme-test-helper.js'
Mount the node with Intl provider context.
Return:
* |
public shallowWithIntl(node: ReactComponent, context: Object, messages: Object, locale: string): * source
import {shallowWithIntl} from 'RNBoilerplate/src/Shared/intl-enzyme-test-helper.js'
Create a shadow renderer that wraps a node with Intl provider context.
Return:
* |
public toJS() source
import {toJS} from 'RNBoilerplate/src/Shared/utils.js'
Decorator to convert ImmutableJS props to JavaScript props