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

Style horizontal is not working #262

Open
shubhext opened this issue Apr 30, 2024 · 0 comments
Open

Style horizontal is not working #262

shubhext opened this issue Apr 30, 2024 · 0 comments

Comments

@shubhext
Copy link

I have use the scrollable flat list but styling is not getting as per the design can you suggest I have used contentcontainer style as well innnercontainerstyles but not working.

<SortableList
style={styles.list}
// horizontal
style={{backgroundColor:"green"}}
data={[...this.state.imageUrl, ...this.createArray(MAX_NUM - (this.state.imageUrl.length >= MAX_NUM ? MAX_NUM - 1 : this.state.imageUrl.length))]}
renderRow={this.renderRow}
contentContainerStyle={{backgroundColor:"red",flexDirection:"row",justifyContent:"space-between"}}
innerContainerStyle={{backgroundColor:"yellow",flex:1, display:'flex',
flexDirection:"row",justifyContent:"space-between"}}
ref={(sortRef)=>this.activeAnim = sortRef}
onReleaseRow= {(key,currentOrder)=>{
console.log("---item-",{key,currentOrder});

       }}
     />
Screenshot 2024-04-30 at 8 47 08 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant