Skip to content

Still not work when multi components #5

@yoursinger

Description

@yoursinger
   <ScrollView>
       <InView onChange={(isVisible) =>checkVisible(isVisible)}
               collapsable={false}
               removeClippedSubviews={false}>
           <View style={ {height:400,margin:10,backgroundColor: isInView ? 'yellow' : '#f9c2ff'}}>
               <Text>1</Text>
           </View>
           <View style={ {height:400,margin:10,backgroundColor: isInView ? 'yellow' : '#f9c2ff'}}>
               <Text>2</Text>
           </View>
           <View style={ {height:400,margin:10,backgroundColor: isInView ? 'yellow' : '#f9c2ff'}}>
               <Text>yay</Text>
           </View>
       </InView>
   </ScrollView>

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions