Skip to content

Commit 7033f46

Browse files
author
Luke Brandon Farrell
committed
Prettier and TSC build for 3+ NPM
1 parent b6cef49 commit 7033f46

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

lib/SideMenuView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ var SideMenuView = /** @class */ (function (_super) {
145145
position: 'absolute',
146146
width: sideMargin || sideMarginLeft,
147147
height: screenHeight,
148-
zIndex: 9999
148+
zIndex: 9999,
149149
} }, this._leftPanResponder.panHandlers))) : null,
150150
right ? (React.createElement(react_native_1.View, __assign({ style: {
151151
position: 'absolute',
152152
right: 0,
153153
width: sideMargin || sideMarginRight,
154154
height: screenHeight,
155-
zIndex: 9999
155+
zIndex: 9999,
156156
} }, this._rightPanResponder.panHandlers))) : null));
157157
};
158158
SideMenuView.defaultProps = {

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"devDependencies": {
4444
"@types/react": "^16.9.1",
4545
"@types/react-native": "^0.60.4",
46-
"prettier": "1.18.2",
46+
"prettier": "2.0.4",
4747
"react": "^16.9.0",
4848
"react-native": "^0.60.4",
4949
"react-native-navigation": "^6.4.0",

src/RNNDrawer.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class RNNDrawer {
190190
this.animatedDrawer = Animated.timing(this.state.sideMenuOpenValue, {
191191
toValue: this.drawerOpenedValues[direction],
192192
duration: this.props.animationOpenTime,
193-
useNativeDriver: false
193+
useNativeDriver: false,
194194
});
195195

196196
// Animate outside side menu opacity
@@ -199,7 +199,7 @@ class RNNDrawer {
199199
{
200200
toValue: fadeOpacity,
201201
duration: this.props.animationOpenTime,
202-
useNativeDriver: false
202+
useNativeDriver: false,
203203
},
204204
);
205205
}
@@ -410,7 +410,7 @@ class RNNDrawer {
410410
Animated.timing(this.state.sideMenuOpenValue, {
411411
toValue: closeValues[direction],
412412
duration: this.props.animationCloseTime,
413-
useNativeDriver: false
413+
useNativeDriver: false,
414414
}).start(() => {
415415
Navigation.dismissOverlay(this.props.componentId);
416416
this.setState({ sideMenuIsDismissing: false });
@@ -420,7 +420,7 @@ class RNNDrawer {
420420
Animated.timing(this.state.sideMenuOverlayOpacity, {
421421
toValue: 0,
422422
duration: this.props.animationCloseTime,
423-
useNativeDriver: false
423+
useNativeDriver: false,
424424
}).start();
425425
}
426426
}
@@ -435,12 +435,14 @@ class RNNDrawer {
435435
*/
436436
static showDrawer(layout: Layout) {
437437
// By default for this library, we make the 'componentBackgroundColor' transparent
438-
const componentBackgroundColor = layout?.component?.options?.layout?.componentBackgroundColor ?? "transparent";
438+
const componentBackgroundColor =
439+
layout?.component?.options?.layout?.componentBackgroundColor ??
440+
'transparent';
439441
const options = {
440442
...layout?.component?.options,
441-
layout: {
442-
componentBackgroundColor: componentBackgroundColor
443-
}
443+
layout: {
444+
componentBackgroundColor: componentBackgroundColor,
445+
},
444446
};
445447

446448
// Mutate options to add 'transparent' by default

src/SideMenuView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class SideMenuView extends React.Component<IProps, {}> {
205205
position: 'absolute',
206206
width: sideMargin || sideMarginLeft,
207207
height: screenHeight,
208-
zIndex: 9999
208+
zIndex: 9999,
209209
}}
210210
{...this._leftPanResponder.panHandlers}
211211
/>
@@ -218,7 +218,7 @@ class SideMenuView extends React.Component<IProps, {}> {
218218
right: 0,
219219
width: sideMargin || sideMarginRight,
220220
height: screenHeight,
221-
zIndex: 9999
221+
zIndex: 9999,
222222
}}
223223
{...this._rightPanResponder.panHandlers}
224224
/>

src/events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function listen(name: string, func: any): () => void {
2626
const key = _events[name].count++;
2727
_events[name].funcs[key] = func;
2828

29-
return function() {
29+
return function () {
3030
delete _events[name].funcs[key];
3131
};
3232
}

0 commit comments

Comments
 (0)