Skip to content

Commit 19b42dd

Browse files
authored
Merge pull request ptomasroos#532 from jmarrot/windows-compatibility
Windows compatibility
2 parents f7265fc + b49813a commit 19b42dd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Button.windows.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
const React = require('react');
2+
const ReactNative = require('react-native');
3+
const {
4+
TouchableOpacity,
5+
View,
6+
} = ReactNative;
7+
8+
const Button = (props) => {
9+
return <TouchableOpacity {...props}>
10+
{props.children}
11+
</TouchableOpacity>;
12+
};
13+
14+
module.exports = Button;

0 commit comments

Comments
 (0)