Skip to content

Commit

Permalink
rakannimer#3 Fix undefined prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
ShavaShav committed Mar 22, 2020
1 parent ac8fe98 commit a440669
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions native/src/components/MidiTrack.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import { View, ViewPropTypes } from 'react-native';

import MidiIO from '../MidiIO/src/';
import Note from './Note';
Expand Down Expand Up @@ -142,7 +142,7 @@ MidiTrack.propTypes = {
instrumentName: PropTypes.string,
deltaTime: PropTypes.number,
msPerTick: PropTypes.number,
style: View.propTypes.style,
style: ViewPropTypes.style,
},
)),
};
3 changes: 2 additions & 1 deletion native/src/components/Orchestra.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { View, Text } from 'react-native';

import MidiTrack from './MidiTrack';
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"midi-file-parser": "^1.0.0",
"midi-writer-js": "^1.4.0",
"pre-commit": "^1.2.2",
"prop-types": "^15.7.2",
"react-keymaster": "^0.1.0",
"soundfont-player": "^0.10.5"
},
Expand Down

0 comments on commit a440669

Please sign in to comment.