Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS FAB crash #144

Closed
jarredszabadi opened this issue Mar 1, 2017 · 5 comments
Closed

iOS FAB crash #144

jarredszabadi opened this issue Mar 1, 2017 · 5 comments
Labels

Comments

@jarredszabadi
Copy link

Works on Android but not on iOS.

Added FAB to a component and crashes on render.

 

render(){
      return (
        <View style={{flex: 1, paddingTop: 22}}>
       
          <Text>{this.state.barcode}</Text>}

      <ActionButton
        buttonColor="rgba(231,76,60,1)"
        onPress={() => { console.log("hi")}}
      />
      </View>
      );
  }

Unhandled JS Exception: _reactNative.TouchableNativeFeedback.SelectableBackground is not a >function. (In '_reactNative.TouchableNativeFeedback.SelectableBackground()', >'_reactNative.TouchableNativeFeedback.SelectableBackground' is undefined)

_renderMainButton
ActionButton.js:110

@nitindhar7
Copy link

nitindhar7 commented Mar 1, 2017

@jarredszabadi wow -- im glad you posted this because I've just wasted 2 hours trying to figure out what was going on. Based on the RN documentation TouchableNativeFeedback is

A wrapper for making views respond properly to touches (Android only)

No wonder it wasn't working on my iOS app.

@jarredszabadi
Copy link
Author

@nitindhar7 Using v2.6.0 it seems to work.
Good find on the documentation.

@mastermoo
Copy link
Owner

Is this still an issue?

@jarredszabadi
Copy link
Author

@mastermoo on the latest release yes. it works on v2.6.0 and below.

@mastermoo
Copy link
Owner

fixed in 2.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants