cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
Oliver George 2021-03-06T01:53:48.073800Z

We're doing some consulting work at the moment. Advising a large client on a digital transformation project. It's made me look more closely at non-RN mobile app development options more closely. This NuBank article makes a good pitch for the strengths of Flutter. https://building.nubank.com.br/scaling-with-flutter/

Oliver George 2021-03-06T01:54:55.074800Z

Wondering if anyone has switched from Flutter to RN and has viceral reactions to the claims.... "After gathering evidence, the team decided to adopt Flutter, thanks to its excellent testing capabilities, such as built-in testing infrastructure for Unit, Integration, and End-to-End tests without the need for rendering to the screen. Overall, — compared to other options — they also found the Flutter development experience to be superior, with better hot reload capabilities, robust official documentation, and a more stable API."

lepistane 2021-03-06T09:26:06.076200Z

sorry i can't provide more pros and cons it was 2 years ago and maybe situation improved but when i tried it i really really didn't like it. I was playing with it for a month and when i switched to RN i was much much happier. Never looked back since

dotemacs 2021-03-06T11:06:19.078500Z

Christophe Grand is working on a port of Flutter to Clojure. Not publicly available yet... best to speak to him about the details

2021-03-06T14:45:08.081100Z

Here the tweet from @cgrand about this https://twitter.com/cgrand/status/1350063059864346624?s=20

dotemacs 2021-03-06T14:46:02.081500Z

And he tweeted recently that he’s been busy with work recently to get this out of the door/open sourced

1🥲
Oliver George 2021-03-07T10:49:05.087400Z

I'm interested to see what he produces. Also curious what dev experience is like.

2➕
Oliver George 2021-03-09T08:30:46.092Z

Thanks for your thoughts everyone.

1👍
kennytilton 2021-03-09T14:46:06.092500Z

Very surprised, @olivergeorge, to see testing wagging the UI framework selection dog. Are they otherwise that interchangeable?

raspasov 2021-03-06T04:21:20.076Z

I haven’t tried Flutter. Wondering what the library/ecosystem looks like for it?

lepistane 2021-03-06T09:26:06.076200Z

sorry i can't provide more pros and cons it was 2 years ago and maybe situation improved but when i tried it i really really didn't like it. I was playing with it for a month and when i switched to RN i was much much happier. Never looked back since

dotemacs 2021-03-06T11:06:19.078500Z

Christophe Grand is working on a port of Flutter to Clojure. Not publicly available yet... best to speak to him about the details

zendevil 2021-03-06T13:31:28.080800Z

I’m trying to use the options prop to have a right header button and a custom title, something like the following https://reactnavigation.org/docs/header-buttons/:

function StackScreen() {
  return (
    <Stack.Navigator>
      <Stack.Screen
        name="Home"
        component={HomeScreen}
        options={({ navigation, route }) => ({
          headerTitle: props => <LogoTitle {...props} />,
        })}
      />
    </Stack.Navigator>
  );
}
And this is what I have:
[:> (.-Screen Stack) {:name "Event Title"
                           :options (fn [navigation]
                                      {:headerTitle (fn [props] "Some Title")
                                       :headerRight
                                       (r/as-element
                                        [button {:title "Next"
                                                 ;;:onPress #(dispatch [:add-thumbnail navigation])
                                                 }])})
                           :component (r/reactify-component event-title)}]
However, neither am I seeing the custom headerTitle nor am I seeing the headerRight which should be the button component. What am I doing wrong?

2021-03-06T14:45:08.081100Z

Here the tweet from @cgrand about this https://twitter.com/cgrand/status/1350063059864346624?s=20

dotemacs 2021-03-06T14:46:02.081500Z

And he tweeted recently that he’s been busy with work recently to get this out of the door/open sourced

1🥲
pez 2021-03-06T15:27:35.082400Z

I think you might need to wrap the return value of the function in (clj->js …), @ps

zendevil 2021-03-06T16:19:47.083400Z

@pez now I have the following:

[:> (.-Screen Stack) {:name "Event Title"
                           :options (fn [navigation]
                                      (clj->js
                                       {:headerTitle (fn [props] "Some Title")
                                       :headerRight
                                       (r/as-element
                                        [button {:title "Next"
                                                 ;;:onPress #(dispatch [:add-thumbnail])
                                                 }])}))
                           :component (r/reactify-component event-title)}]
But I get the following error:

pez 2021-03-06T16:24:22.084300Z

Wild guess: try with r/as-component

zendevil 2021-03-06T16:25:57.084600Z

@pez where should I put as-component?

pez 2021-03-06T16:26:30.085200Z

Sorry, instead of r/as-element, I meant.

zendevil 2021-03-06T16:32:23.085500Z

@pez That gives the following

pez 2021-03-06T16:41:12.087200Z

I’m out of guess, unfortunately. I haven’t used that API myself. (But I’m pretty sure the clj->js is needed there.)