Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ npm install @remobile/react-native-action-sheet --save
```js
'use strict';

var React = require('react-native');
var {
import React from 'react';
import {
StyleSheet,
TouchableOpacity,
View,
} = React;
} from 'react-native';

var ActionSheet = require('@remobile/react-native-action-sheet');
var Button = require('@remobile/react-native-simple-button');
Expand Down
9 changes: 7 additions & 2 deletions button.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
*/
'use strict'

var React = require('react-native');
var { StyleSheet, Text, TouchableOpacity, View } = React;
import React from 'react';
import {
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';

module.exports = React.createClass({
render: function() {
Expand Down
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
*/
'use strict';

var React = require('react-native');
var {
import React from 'react';
import {
StyleSheet,
TouchableOpacity,
View,
} = React;
} from 'react-native';

var Button = require('./button.js');
var Overlay = require('./overlay.js');
var Sheet = require('./sheet.js');
import Button from './button.js';
import Overlay from './overlay.js';
import Sheet from './sheet.js';

module.exports = React.createClass({
getDefaultProps: function() {
Expand Down
9 changes: 7 additions & 2 deletions overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
*/
'use strict';

var React = require('react-native');
var { Animated, StyleSheet, View, Dimensions} = React;
import React from 'react';
import {
Animated,
StyleSheet,
View,
Dimensions,
} from 'react-native';

const DEFAULT_ANIMATE_TIME = 300;

Expand Down
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"name": "@remobile/react-native-action-sheet",
"version": "1.0.1",
"description": "A pure js ActionSheet like ios ActionSheet, support ios and android",
"main": "index.js",
"author": {
"name": "YunJiang.Fang",
"email": "42550564@qq.com"
},
"license": "MIT",
"keywords": [
"react-native",
"react-component",
"ios",
"android",
"action sheet",
"ActionSheet",
"animation",
"remobile",
"mobile"
],
"homepage": "https://github.com/remobile/react-native-action-sheet",
"bugs": {
"url": "https://github.com/remobile/react-native-action-sheet/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/remobile/react-native-action-sheet.git"
}
"name": "react-native-action-sheet",
"version": "2.0.0",
"description": "A pure js ActionSheet like ios ActionSheet, support ios and android",
"main": "index.js",
"author": {
"name": "YunJiang.Fang",
"email": "42550564@qq.com"
},
"license": "MIT",
"keywords": [
"react-native",
"react-component",
"ios",
"android",
"action sheet",
"ActionSheet",
"animation",
"remobile",
"mobile"
],
"homepage": "https://github.com/remobile/react-native-action-sheet",
"bugs": {
"url": "https://github.com/remobile/react-native-action-sheet/issues"
},
"repository": {
"type": "git",
"url": "git://github.com/remobile/react-native-action-sheet.git"
}
}
9 changes: 7 additions & 2 deletions sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
*/
'use strict';

var React = require('react-native');
var { Animated, StyleSheet, View, Dimensions} = React;
import React from 'react';
import {
Animated,
StyleSheet,
View,
Dimensions,
} from 'react-native';

const DEFAULT_BOTTOM = -300;
const DEFAULT_ANIMATE_TIME = 300;
Expand Down