React-native-interactable: examples not working on Android

Created on 11 Jul 2017  路  7Comments  路  Source: wix/react-native-interactable

Most helpful comment

Simple example not working on android but works on iOS.
And it gives a red border to the Interactable.View

<ScrollView style={{flex:1}}>
<Interactable.View
  horizontalOnly={true}
  style={{width: '100%'}}
  snapPoints={[{x: 0}, {x: -200}]}>

  <Text style={{
    fontSize: 16, fontWeight: 'bold', backgroundColor: colors.background,
    paddingLeft: 15, paddingBottom: 8
  }}>Text</Text>

</Interactable.View>
</ScrollView>

screen shot 2017-08-25 at 5 22 55 pm

Any idea what's going on?

All 7 comments

Simple example not working on android but works on iOS.
And it gives a red border to the Interactable.View

<ScrollView style={{flex:1}}>
<Interactable.View
  horizontalOnly={true}
  style={{width: '100%'}}
  snapPoints={[{x: 0}, {x: -200}]}>

  <Text style={{
    fontSize: 16, fontWeight: 'bold', backgroundColor: colors.background,
    paddingLeft: 15, paddingBottom: 8
  }}>Text</Text>

</Interactable.View>
</ScrollView>

screen shot 2017-08-25 at 5 22 55 pm

Any idea what's going on?

@aminroosta No idea . I made it worked a month ago but when using it again in a different project , it do gives the red border and doesn't work.

@yash2code Can you please check in which version it was working? Maybe it's broken recently.

@aminroosta I was using RN 0.46.4 and interactable version 0.0.9

@aminroosta Do tell if it worked! :dancer:

@yash2code

I can confirm that v0.1.3 (and probably earlier versions) work.

// in MainApplication.java
    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          new Interactable() // Add this line
      );
    }

Somehow react-native link react-native-interactable failed to add that line.
I'd suggest to close this issue :-)

I am closing the issue as a part of an effort to cleanup and revive the project. If this issue persists after v1.0.0, you are more than welcome to reintroduce the issue.

Thanks for your contribution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yoavrofe picture yoavrofe  路  4Comments

m10653 picture m10653  路  4Comments

tikkichan4 picture tikkichan4  路  5Comments

TomAtterton picture TomAtterton  路  3Comments

BogdanRad picture BogdanRad  路  4Comments