Skip to content

Commit

Permalink
remove unused variables and methods in different files (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: luism3861 <eduardo_media@fragua.com.mx>
  • Loading branch information
luism3861 and luism3861 authored Dec 29, 2020
1 parent 039050d commit fdd68dd
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 48 deletions.
2 changes: 1 addition & 1 deletion example/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StyleSheet, ScrollView, SafeAreaView, View, Text } from 'react-native';
import { StyleSheet, ScrollView, SafeAreaView } from 'react-native';

import { ModalViewTest0 } from './components/ModalViewTest0';
import { ModalViewTest1 } from './components/ModalViewTest1';
Expand Down
4 changes: 1 addition & 3 deletions example/src/components/ModalViewTest0.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import { View, Text, TouchableOpacity } from 'react-native';

import { ModalView, AvailableBlurEffectStyles, UIBlurEffectStyles } from 'react-native-ios-modal';

Expand Down Expand Up @@ -116,8 +116,6 @@ export class ModalViewTest0 extends React.PureComponent {
};

render(){
const { counter } = this.state;

return (
<React.Fragment>
<TestListItem
Expand Down
10 changes: 1 addition & 9 deletions example/src/components/ModalViewTest1.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import { View, Text, TouchableOpacity } from 'react-native';

import { ModalView, UIModalPresentationStyles } from 'react-native-ios-modal';

Expand Down Expand Up @@ -94,11 +94,3 @@ export class ModalViewTest1 extends React.PureComponent {
};
};

const styles = StyleSheet.create({
rootContainer: {
flex: 1,
padding: 40,
alignItems: 'center',
justifyContent: 'center',
},
});
5 changes: 1 addition & 4 deletions example/src/components/ModalViewTest2.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import { View, Text } from 'react-native';

import { ModalView, AvailableBlurEffectStyles } from 'react-native-ios-modal';

Expand Down Expand Up @@ -162,6 +162,3 @@ export class ModalViewTest2 extends React.PureComponent {
);
};
};

const styles = StyleSheet.create({
});
7 changes: 1 addition & 6 deletions example/src/components/ModalViewTest3.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import * as React from 'react';
import { StyleSheet, View, Text, TouchableOpacity, Alert } from 'react-native';
import { View, Text, TouchableOpacity, Alert } from 'react-native';

import { ModalView } from 'react-native-ios-modal';

import { sharedStyles } from '../constants/SharedStyles';
import { TestListItem } from './TestListItem';

import * as Helpers from '../functions/helpers';


async function delayedAlert(that, msg){
const title = `ModalView Event: ${msg}`;
Expand Down Expand Up @@ -149,6 +147,3 @@ export class ModalViewTest3 extends React.PureComponent {
};
};

const styles = StyleSheet.create({

});
6 changes: 1 addition & 5 deletions example/src/components/ModalViewTest4.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StyleSheet, View, Text, TouchableOpacity, ScrollView } from 'react-native';
import { View, Text, ScrollView } from 'react-native';

import { ModalView, ModalEventKeys } from 'react-native-ios-modal';

Expand Down Expand Up @@ -113,7 +113,3 @@ export class ModalViewTest4 extends React.PureComponent {
);
};
};

const styles = StyleSheet.create({

});
21 changes: 8 additions & 13 deletions example/src/components/ModalViewTest5.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StyleSheet, View, Text, TouchableOpacity, ScrollView } from 'react-native';
import { View, Text, ScrollView } from 'react-native';

import { ModalView, withModalLifecycle, ModalEventKeys } from 'react-native-ios-modal';

Expand Down Expand Up @@ -34,31 +34,31 @@ class ModalContents extends React.PureComponent {
};
};

onModalBlur = (event) => {
onModalBlur = () => {
handleEvent(this, ModalEventKeys.onModalBlur);
};

onModalFocus = (event) => {
onModalFocus = () => {
handleEvent(this, ModalEventKeys.onModalFocus);
};

onModalShow = (event) => {
onModalShow = () => {
handleEvent(this, ModalEventKeys.onModalShow);
};

onModalDismiss = (event) => {
onModalDismiss = () => {
handleEvent(this, ModalEventKeys.onModalDismiss);
};

onModalDidDismiss = (event) => {
onModalDidDismiss = () => {
handleEvent(this, ModalEventKeys.onModalDidDismiss);
};

onModalWillDismiss = (event) => {
onModalWillDismiss = () => {
handleEvent(this, ModalEventKeys.onModalWillDismiss);
};

onModalAttemptDismiss = (event) => {
onModalAttemptDismiss = () => {
handleEvent(this, ModalEventKeys.onModalAttemptDismiss);
};

Expand Down Expand Up @@ -112,8 +112,3 @@ export class ModalViewTest5 extends React.PureComponent {
);
};
};


const styles = StyleSheet.create({

});
1 change: 0 additions & 1 deletion example/src/components/ModalViewTest6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ModalView } from 'react-native-ios-modal';
import { TestListItem } from './TestListItem';

import * as Colors from '../constants/Colors';
import * as Helpers from '../functions/helpers';


export class ModalViewTest6 extends React.PureComponent {
Expand Down
7 changes: 2 additions & 5 deletions example/src/components/ModalViewTest8.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import { StyleSheet, View, Text, TouchableOpacity, ScrollView } from 'react-native';
import { View, Text, TouchableOpacity, ScrollView } from 'react-native';

import { ModalView, ModalEventKeys } from 'react-native-ios-modal';
import { ModalView } from 'react-native-ios-modal';

import { sharedStyles } from '../constants/SharedStyles';
import { TestListItem } from './TestListItem';
Expand Down Expand Up @@ -78,6 +78,3 @@ export class ModalViewTest8 extends React.PureComponent {
};
};

const styles = StyleSheet.create({

});
1 change: 0 additions & 1 deletion example/src/components/TestListItem.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from 'react';
import { StyleSheet, View, Text, TouchableOpacity } from 'react-native';
import PropTypes from 'prop-types';

import * as Colors from "../constants/Colors";

Expand Down

0 comments on commit fdd68dd

Please sign in to comment.