Coder Social home page Coder Social logo

Android Canvas Scroll about react-native-canvas HOT 20 CLOSED

iddan avatar iddan commented on July 17, 2024 1
Android Canvas Scroll

from react-native-canvas.

Comments (20)

deaknorbert avatar deaknorbert commented on July 17, 2024 1

Hey! Can we get a solution for this issue? Thank you very much!

from react-native-canvas.

deaknorbert avatar deaknorbert commented on July 17, 2024 1

The scrollbars are present on all dimensions no matter on what emulator i'm testing on. Currently I test it on Nexus 5X API 26 and the examples show scrollbars around them.

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

it shouldn't be scrollable. Can you provide some details about your usecase?

from react-native-canvas.

shivenj avatar shivenj commented on July 17, 2024

<View style={{ position: "absolute", top: 0, left: 8 }} > <ScrollView scrollEnabled={false}> <Canvas key={this.state.reloadCanvas} ref={this.handleCanvas} /> </ScrollView> </View>

canvas.width = 150 canvas.height = 150

this is what i get when i inspect webview on chrome :
screenshot from 2017-10-24 13 00 43

from react-native-canvas.

Cheerupgr avatar Cheerupgr commented on July 17, 2024

I've got same issue. it shows scroll bar in Android

from react-native-canvas.

Cheerupgr avatar Cheerupgr commented on July 17, 2024

When I didn't set width and height, it cuts off what I drew in canvas.

from react-native-canvas.

Cheerupgr avatar Cheerupgr commented on July 17, 2024

http://prntscr.com/h1a70f

when I double-click canvas component, it becomes

http://prntscr.com/h1a8n2

from react-native-canvas.

shivenj avatar shivenj commented on July 17, 2024

Seems like issue is with autoscale-canvas.js . if i remove autoscale-canvas.js from package the quality degrades but the scroll is solved.
screenshot from 2017-10-24 15 13 50

but still can't figure out why canvas shows scroller on page load.
screenshot from 2017-10-24 15 19 30
you may also see this in example provided by you.
screenshot_1508838685

from react-native-canvas.

conor-kelleher avatar conor-kelleher commented on July 17, 2024

I've also seen this on all my emulators when running the sample project

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

Can you please provide some technical details please?

from react-native-canvas.

deaknorbert avatar deaknorbert commented on July 17, 2024

There are some printscreens above. Basically, scrollbars are appearing on android.

from react-native-canvas.

deaknorbert avatar deaknorbert commented on July 17, 2024

I'm developing on android Nougat with these dependencies

"react": "16.0.0-beta.5",
"react-native": "0.49.3",
"react-native-canvas": "0.1.20",

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

It seems like more of a platform issue than the libraries. Do you know of any native Android solutions for this (WebView showing bars when it shouldn't)?

from react-native-canvas.

deaknorbert avatar deaknorbert commented on July 17, 2024

I don't use any WebView. All my code is in react native.

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

Canvas uses it :)

from react-native-canvas.

deaknorbert avatar deaknorbert commented on July 17, 2024

I can't make it work unfortunately.

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

What device dimensions are you testing it on?

from react-native-canvas.

sahiltaneja07 avatar sahiltaneja07 commented on July 17, 2024

@shivenj how did you draw that circular canvas, basically I need scrollable semi-circular list view in react-native, can you help?

from react-native-canvas.

Mactub07 avatar Mactub07 commented on July 17, 2024

try to add this string "scrollEnabled: false," in node module, then make sure that you use in debug mode updated node module ( with added string);
http://prntscr.com/hzd8yh

from react-native-canvas.

iddan avatar iddan commented on July 17, 2024

Should be resolved by now

from react-native-canvas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.