[GH-ISSUE #49] Picker has significant delay on changing option #26

Closed
opened 2026-05-05 11:28:32 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @meghprkh on GitHub (Mar 6, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/49

proton-native-picker-bug

(Code:

import React, { Component } from 'react'; // import from react

import { render, Window, App, Box, Button, TextInput, Picker } from 'proton-native'; // import the proton-native components

class Example extends Component {
  render() { // all Components must have a render method
    return (
      <App> // you must always include App around everything
        <Window title="Proton Native Rocks!" menuBar={false}>
          <Box>
            <Picker stretchy={false} selected={0}>
              <Picker.Item>Option 1</Picker.Item>
              <Picker.Item>Option 2</Picker.Item>
              <Picker.Item>Option 3</Picker.Item>
            </Picker>
            <Button stretchy={false}>Hello</Button>
            <TextInput stretchy={false} />
          </Box>
        </Window>
      </App>
    );
  }
}

render(<Example />); // and finally render your main component
Originally created by @meghprkh on GitHub (Mar 6, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/49 ![proton-native-picker-bug](https://user-images.githubusercontent.com/5979605/37041361-0e1a3376-2182-11e8-92a6-07e98f634274.gif) (Code: ```js import React, { Component } from 'react'; // import from react import { render, Window, App, Box, Button, TextInput, Picker } from 'proton-native'; // import the proton-native components class Example extends Component { render() { // all Components must have a render method return ( <App> // you must always include App around everything <Window title="Proton Native Rocks!" menuBar={false}> <Box> <Picker stretchy={false} selected={0}> <Picker.Item>Option 1</Picker.Item> <Picker.Item>Option 2</Picker.Item> <Picker.Item>Option 3</Picker.Item> </Picker> <Button stretchy={false}>Hello</Button> <TextInput stretchy={false} /> </Box> </Window> </App> ); } } render(<Example />); // and finally render your main component ```
Author
Owner

@kusti8 commented on GitHub (Mar 6, 2018):

Huh that's interesting. Libui-node is getting a new event loop, so that
will probably fix it.

On Tue, Mar 6, 2018, 11:00 AM Megh Parikh notifications@github.com wrote:

[image: proton-native-picker-bug]
https://user-images.githubusercontent.com/5979605/37041361-0e1a3376-2182-11e8-92a6-07e98f634274.gif

(Code:

import React, { Component } from 'react'; // import from react
import { render, Window, App, Box, Button, TextInput, Picker } from 'proton-native'; // import the proton-native components
class Example extends Component {
render() { // all Components must have a render method
return (
// you must always include App around everything



<Picker.Item>Option 1</Picker.Item>
<Picker.Item>Option 2</Picker.Item>
<Picker.Item>Option 3</Picker.Item>






);
}
}
render(); // and finally render your main component


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/kusti8/proton-native/issues/49, or mute the thread
https://github.com/notifications/unsubscribe-auth/AJW73M3DeD0UpjgI6TOAFnElNEKmsR1-ks5tbrKogaJpZM4Se9qW
.

<!-- gh-comment-id:370922812 --> @kusti8 commented on GitHub (Mar 6, 2018): Huh that's interesting. Libui-node is getting a new event loop, so that will probably fix it. On Tue, Mar 6, 2018, 11:00 AM Megh Parikh <notifications@github.com> wrote: > [image: proton-native-picker-bug] > <https://user-images.githubusercontent.com/5979605/37041361-0e1a3376-2182-11e8-92a6-07e98f634274.gif> > > (Code: > > import React, { Component } from 'react'; // import from react > import { render, Window, App, Box, Button, TextInput, Picker } from 'proton-native'; // import the proton-native components > class Example extends Component { > render() { // all Components must have a render method > return ( > <App> // you must always include App around everything > <Window title="Proton Native Rocks!" menuBar={false}> > <Box> > <Picker stretchy={false} selected={0}> > <Picker.Item>Option 1</Picker.Item> > <Picker.Item>Option 2</Picker.Item> > <Picker.Item>Option 3</Picker.Item> > </Picker> > <Button stretchy={false}>Hello</Button> > <TextInput stretchy={false} /> > </Box> > </Window> > </App> > ); > } > } > render(<Example />); // and finally render your main component > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/kusti8/proton-native/issues/49>, or mute the thread > <https://github.com/notifications/unsubscribe-auth/AJW73M3DeD0UpjgI6TOAFnElNEKmsR1-ks5tbrKogaJpZM4Se9qW> > . >
Author
Owner

@parro-it commented on GitHub (Mar 13, 2018):

I hope to publish a prerelease version of libui-node this week, with the updated event loop logic.

<!-- gh-comment-id:372824482 --> @parro-it commented on GitHub (Mar 13, 2018): I hope to publish a prerelease version of libui-node this week, with the updated event loop logic.
Author
Owner

@kusti8 commented on GitHub (Mar 22, 2018):

I just tested it with the new version and it seems to work better. Can you try it?

<!-- gh-comment-id:375338006 --> @kusti8 commented on GitHub (Mar 22, 2018): I just tested it with the new version and it seems to work better. Can you try it?
Author
Owner

@meghprkh commented on GitHub (Mar 30, 2018):

Yeah it works smoothly now. Closing issue. Thanks!

<!-- gh-comment-id:377490246 --> @meghprkh commented on GitHub (Mar 30, 2018): Yeah it works smoothly now. Closing issue. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#26
No description provided.