Skip to content

Commit

Permalink
fix: Allow Button to work on react-native-web (#1433)
Browse files Browse the repository at this point in the history
* docs(Button-0.19): Change fontSize type to number

* docs(Tile 0.19): Fix imageSrc to use correct requires

* docs(ListItem 0.19): Change ListView examples to use FlatList (#1401)

* changed ListView to FlatList

since ListView is deprecated it is not working properly or giving errors in newer versions of RN

* updated requested changes

Fixed changes required into FlatList

* docs(Card): Remove Lato fontFamily from examples (#1403)

People were getting errors copying and pasting these snippets since they
don't have Lato installed

* Fix Button On Web

TouchableNativeFeedback being used on web because Platform was not ios, but that component is not implemented in react-native-web
  • Loading branch information
enewbury authored and iRoachie committed Sep 28, 2018
1 parent faf51e5 commit ee2fe0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buttons/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ Button.defaultProps = {
title: 'Welcome to\nReact Native Elements',
iconRight: false,
TouchableComponent:
Platform.OS === 'ios' ? TouchableOpacity : TouchableNativeFeedback,
Platform.OS === 'android' ? TouchableNativeFeedback : TouchableOpacity,
onPress: () => console.log('Please attach a method to this component'),
clear: false,
loadingProps: {
Expand Down

0 comments on commit ee2fe0f

Please sign in to comment.