-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from shoutem/release/0.12.0
Release/0.12.0
- Loading branch information
Showing
28 changed files
with
9,732 additions
and
511 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
**/dist/* | ||
**/node_modules/* | ||
**/server.js | ||
**/webpack.config*.js | ||
**/test-utils/setup.js | ||
|
||
_tests_ | ||
test-utils |
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ node_modules | |
|
||
# Ignore test folders | ||
*_tests_ | ||
test-utils | ||
|
||
# Ignore local/config files | ||
.editorconfig | ||
|
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
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,43 +1,45 @@ | ||
import React, { | ||
Component, | ||
Text, | ||
} from 'react-native'; | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import { connectStyle } from '../../'; | ||
import { Text } from 'react-native'; | ||
import { ThemeShape } from '../../src/Theme'; | ||
import connectStyle from '../../src/connectStyle'; | ||
|
||
class ConnectStyleTestClassComponent extends Component { | ||
static propTypes = { | ||
style: PropTypes.object, | ||
}; | ||
|
||
constructor(props, context) { | ||
super(props, context); | ||
|
||
this.state = { text: 'Testing StyleProvider' }; | ||
} | ||
|
||
render() { | ||
return <Text>{this.state.text}</Text>; | ||
const { text } = this.state; | ||
|
||
return <Text>{text}</Text>; | ||
} | ||
} | ||
|
||
function ConnectStyleTestStatelessComponent() { | ||
return <Text>Stateless Component</Text>; | ||
} | ||
|
||
const style = { | ||
testStyle: {}, | ||
}; | ||
|
||
const options = { withRef: true }; | ||
const style = { testStyle: {} }; | ||
const options = {}; | ||
export const componentName = 'test.component.TestComponent'; | ||
|
||
const componentName = 'test.component.TestComponent'; | ||
|
||
const ConnectedClassComponent = | ||
connectStyle(componentName, style, undefined, options)(ConnectStyleTestClassComponent); | ||
const ConnectedStatelessComponent = | ||
connectStyle(componentName, style, undefined, options)(ConnectStyleTestStatelessComponent); | ||
export const ConnectedClassComponent = connectStyle( | ||
componentName, | ||
style, | ||
undefined, | ||
options, | ||
)(ConnectStyleTestClassComponent); | ||
|
||
export { | ||
ConnectedClassComponent, | ||
ConnectedStatelessComponent, | ||
export const ConnectedStatelessComponent = connectStyle( | ||
componentName, | ||
}; | ||
style, | ||
undefined, | ||
options, | ||
)(ConnectStyleTestStatelessComponent); |
Oops, something went wrong.