Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Remove debugger statement to allow invariant to be called properly #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 1 addition & 2 deletions src/flattenStyle.js
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@ import type { StyleObj } from 'StyleSheetTypes';

function getStyle(style) {
if (style && typeof style === 'number') {
debugger;
invariant(false, "Error when using Navigator from react-native-custom-components. Please provide a raw object to `props.sceneStyle` instead of a StyleSheet reference.");
}
return style;
@@ -60,4 +59,4 @@ function flattenStyle(style: ?StyleObj): ?Object {
return result;
}

module.exports = flattenStyle;
module.exports = flattenStyle;