Skip to content

Commit

Permalink
fix import of react-native-progress for jest testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kdnakt committed Apr 3, 2018
1 parent 4379323 commit c2d0152
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"jest": {
"preset": "react-native",
"transformIgnorePatterns": [
"node_modules/(?!(react-native|react-navigation|react-native-safe-area-view)/)"
"node_modules/(?!(react-native|react-navigation|react-native-safe-area-view|react-native-progress)/)"
]
}
}
4 changes: 2 additions & 2 deletions src/TimerScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TouchableHighlight,
} from 'react-native';
import ReactNativeBgTimer from 'react-native-background-timer';
import * as Progress from 'react-native-progress';
import ProgressPie from 'react-native-progress/Pie';
//import Icon from 'react-native-vector-icons/FontAwesome';
import Realm from 'realm';
import {
Expand Down Expand Up @@ -190,7 +190,7 @@ class TimerScreen extends Component {
</Text>
</TouchableHighlight>

<Progress.Pie
<ProgressPie
progress={timeCount / targetTime}
size={150}
/>
Expand Down

0 comments on commit c2d0152

Please sign in to comment.