Skip to content

Commit 42c8172

Browse files
author
jonatansalas
committed
Adding redux-autoform-native package structure
1 parent b4fb41f commit 42c8172

File tree

14 files changed

+3805
-8
lines changed

14 files changed

+3805
-8
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
/**
2-
* Created by jonatansalas on 6/5/17.
3-
*/

packages/redux-autoform-core/src/components/AutoForm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class AutoForm extends Component {
3636
componentWillMount() {
3737
// we need to delete all undefined reduxFormProps specifically because overwriteOnInitialValuesChange cannot
3838
// be undefined, otherwise it triggers this errors:
39-
// Failed prop type: Required prop `overwriteOnInitialValuesChange` was not specified in `ReduxForm(AutoFormInternal)`.
39+
// Failed prop type: Required prop `overwriteOnInitialValuesChange` was not specified in `ReduxForm(AutoForm)`.
4040
Object.keys(this.props).forEach(key => {
4141
const property = this.props[key];
4242

@@ -57,7 +57,7 @@ class AutoForm extends Component {
5757
)
5858
}
5959

60-
renderButtonBar = (buttonBar, submitting) => React.createElement(buttonBar, { submitting });
60+
renderButtonBar = (buttonBar, submitting = false) => buttonBar && React.createElement(buttonBar, { submitting });
6161

6262
renderLayout = (componentFactory, layout) => {
6363
const formLayout = LayoutProvider.canonizeLayout(layout);

packages/redux-autoform-material/src/components/index.js

Whitespace-only changes.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
/**
2-
* Created by jonatansalas on 6/5/17.
3-
*/

packages/redux-autoform-material/test/test.js

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["es2015", "stage-0", "react"],
3+
"plugins": ["transform-decorators-legacy"]
4+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# redux-autoform-native
2+
> React Native components for redux-autoform
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "redux-autoform-native",
3+
"version": "1.0.0",
4+
"description": "react-native components for redux-autoform",
5+
"main": "/dist/index.js",
6+
"scripts": {
7+
"clean": "rimraf ./dist",
8+
"compile": "babel ./src -d ./dist",
9+
"build": "yarn run clean && yarn run compile",
10+
"test": "echo \"Error: no test specified\" && exit 1"
11+
},
12+
"author": "Redux Autoform",
13+
"license": "MIT",
14+
"devDependencies": {
15+
"babel-cli": "^6.24.1",
16+
"babel-core": "^6.24.1",
17+
"babel-loader": "^7.0.0",
18+
"babel-plugin-transform-decorators-legacy": "^1.3.4",
19+
"babel-polyfill": "^6.23.0",
20+
"babel-preset-es2015": "^6.24.1",
21+
"babel-preset-react": "^6.24.1",
22+
"babel-preset-stage-0": "^6.24.1",
23+
"babel-register": "^6.24.1",
24+
"react": "^15.5.4",
25+
"rimraf": "^2.6.1"
26+
},
27+
"dependencies": {
28+
"react-native": "^0.44.0"
29+
}
30+
}

0 commit comments

Comments
 (0)