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

Update with a working example #23

Closed
wants to merge 1 commit into from

Conversation

barelyhuman
Copy link
Contributor

@barelyhuman barelyhuman commented Aug 1, 2022

Replaces the older example with a current working example for the following versions

"@cycle/react-native": "^3.0.0",
"@cycle/run": "^5.7.0",
"react": "18.0.0",
"react-native": "0.69.3",
"xstream": "^11.14.0"

);

return {
react: elem$,
};
}

run(main, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did run not work? It should work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, was left out at a blank render unless a delay was added

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then that's a bug, run needs to work (I'm sure it once worked).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then that's a bug, run needs to work (I'm sure it once worked).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In that case the PR can be ignored, I'll try to look into the run issue

buttonText: {
color: 'white',
},
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the purposes of a readme example, we don't need styles.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’d recommend keeping the view container style , since on modern devices the counter touchable goes behind the statusbar / notch / etc.

i’ll remove the other styles

TouchableHighlight,
Text,
} from '@cycle/react-native';
import {name as appName} from './app.json';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this in a readme example, can you revert this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the name import? yeah will do

@barelyhuman barelyhuman closed this Aug 1, 2022
@barelyhuman
Copy link
Contributor Author

barelyhuman commented Oct 11, 2022 via email

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

Successfully merging this pull request may close these issues.

None yet

2 participants