Skip to content

Commit

Permalink
Update dist e npm init
Browse files Browse the repository at this point in the history
  • Loading branch information
Darlei Kroth committed Feb 27, 2017
1 parent 092aa41 commit 61e489e
Show file tree
Hide file tree
Showing 16 changed files with 47 additions and 521 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Módulo que reúne componentes nativos customizados. O objetivo é facilitar a o

- [CardView](#cardview)
- [DatePicker](#datepicker)
- [Navbar](#vavbar)
- [Navbar](#navbar)
- [TouchableView](#touchableview)

## CardView
Expand Down
84 changes: 0 additions & 84 deletions dist/CardView/index.android.js

This file was deleted.

85 changes: 0 additions & 85 deletions dist/CardView/index.ios.js

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions dist/DatePicker/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from 'react-native';
import TimerMixin from 'react-timer-mixin';

class DatePickerRN extends React.Component
class DatePicker extends React.Component
{
constructor(props)
{
Expand Down Expand Up @@ -55,4 +55,4 @@ class DatePickerRN extends React.Component
}
};

export default DatePickerRN;
module.exports = DatePicker;
13 changes: 6 additions & 7 deletions dist/DatePicker/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import {
DatePickerIOS,
} from 'react-native';
import TimerMixin from 'react-timer-mixin';
import Color from '../../res/colors';
import Dimensions from 'Dimensions';

class DatePickerRN extends React.Component
class DatePicker extends React.Component
{
constructor(props)
{
Expand Down Expand Up @@ -113,11 +112,11 @@ class DatePickerRN extends React.Component
height: 56,
alignItems: 'center',
justifyContent: 'center',
borderColor: Color.Grey300,
borderColor: '#E0E0E0',
borderWidth: 0.5,
borderBottomLeftRadius: 15,
}}
underlayColor={Color.Grey300}
underlayColor='#E0E0E0'
onPress={() => this.cancelar()}
>
<Text style={{ fontSize: 18, color: 'dodgerblue' }}>
Expand All @@ -131,11 +130,11 @@ class DatePickerRN extends React.Component
height: 56,
alignItems: 'center',
justifyContent: 'center',
borderColor: Color.Grey300,
borderColor: '#E0E0E0',
borderWidth: 0.5,
borderBottomRightRadius: 15,
}}
underlayColor={Color.Grey300}
underlayColor='#E0E0E0'
onPress={() => this.salvar()}
>
<Text style={{ fontSize: 18, color: 'dodgerblue'}}>
Expand All @@ -150,4 +149,4 @@ class DatePickerRN extends React.Component
}
};

export default DatePickerRN;
module.exports = DatePicker;
6 changes: 5 additions & 1 deletion dist/TouchableView/index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ class TouchableView extends React.Component
render() {
return (
<TouchableNativeFeedback
style={{ borderRadius: this.props.borderRadius || undefined }}
onPress={this.props.onPress}
onLongPress={this.props.onLongPress}
background={TouchableNativeFeedback.SelectableBackgroundBorderless()}
background={TouchableNativeFeedback.Ripple(
this.props.underlayColor || 'rgba(0,0,0,0.12)', true
)}
useForeground={true}
onLayout={this.props.onLayout}
>
{this.props.children}
</TouchableNativeFeedback>
Expand Down
2 changes: 2 additions & 0 deletions dist/TouchableView/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ class TouchableView extends React.Component
render() {
return (
<TouchableHighlight
style={{ borderRadius: this.props.borderRadius || undefined }}
underlayColor={this.props.underlayColor || '#E0E0E0'}
onPress={this.props.onPress}
onLongPress={this.props.onLongPress}
onLayout={this.props.onLayout}
>
{this.props.children}
</TouchableHighlight>
Expand Down
30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "react-native-zbase",
"version": "0.1.0",
"description": "React Native zBase Components",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/darleikroth/react-native-zbase.git"
},
"keywords": [
"react",
"native",
"components",
"custom"
],
"author": "Darlei Kroth <maildarlei@gmail.com> (https://github.com/darleikroth)",
"license": "ISC",
"bugs": {
"url": "https://github.com/darleikroth/react-native-zbase/issues"
},
"homepage": "https://github.com/darleikroth/react-native-zbase#readme",
"peerDependencies": {
"react-native": ">=0.40.0",
"react-native-vector-icons": "~4.0.0",
"react-timer-mixin": "^0.13.3"
},
}
2 changes: 1 addition & 1 deletion sample/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
View
} from 'react-native';

import {TouchableView, Navbar, DatePicker, CardView} from './dist';
import {TouchableView, Navbar, DatePicker, CardView} from 'react-native-zbase';

const ios = Platform.OS === 'ios';

Expand Down
58 changes: 0 additions & 58 deletions sample/dist/DatePicker/index.android.js

This file was deleted.

Loading

0 comments on commit 61e489e

Please sign in to comment.