Skip to content

Commit

Permalink
Fix exporting TVViewPropTypes on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Ciombor committed Jan 8, 2018
1 parent f8b74aa commit 099b841
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Libraries/Components/View/PlatformViewPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
const Platform = require('Platform');

var TVViewPropTypes = {};
if (Platform.isTV) {
// We need to always include TVViewPropTypes on Android
// as unlike on iOS we can't detect TV devices at build time
// and hence make view manager export a different list of native properties.
if (Platform.isTV || Platform.OS === 'android') {
TVViewPropTypes = require('TVViewPropTypes');
}

Expand Down

0 comments on commit 099b841

Please sign in to comment.