Twitter | Search | |
Jamie Birch
❤️ Crossplatform, NativeScript 💼 Smart TV software engineer 🔨 LinguaBrowse, a browser for language-learning 🔨 React NativeScript, a React Native alternative
3,216
Tweets
293
Following
615
Followers
Tweets
Jamie Birch 10h
An easy performance win for React Native apps is to remove your console.log() statements: Just to confirm, console.log() isn't automatically stripped in release builds nowadays (v0.61.4 in my case)? I'll still need to incorporate a Babel transform, right?
Reply Retweet Like
Jamie Birch 14h
Replying to @cem2ran
This is ! I'll let it speak for itself 🙂
Reply Retweet Like
Jamie Birch 14h
I have just paid for a "proper" privacy policy. I once lost a good weekend writing my own GDPR-conscious policy after adding Google Mobile Ads and it sucked. 🤬 Having gone through that, spending $27/year to generate one feels like money well spent. One step closer to shipping!
Reply Retweet Like
Jamie Birch 14h
Replying to @Kaiyes_Ansary @osfrnc
Dunkey: "It's as simple as that, ladies and gentlemen"
Reply Retweet Like
Jamie Birch 15h
Replying to @Seanmclem
Nope, native views (e.g. UIView on iOS) all the way down, puppeteered by JS.
Reply Retweet Like
Jamie Birch 15h
Replying to @haroenv
Woah! `yarn licenses generate-disclaimer` will even fetch the licences and allow you to include them directly in your app (rather than linking to them externally)! It's far less pretty, but it's certainly legally stronger.
Reply Retweet Like
Jamie Birch 15h
Replying to @Seanmclem
> single-threaded More accurately (I'd just hit the character limit), it's multi-threaded, but the JS context runs on the same thread as the UI thread. Oh, and you can get references to any UI component and manipulate it directly (e.g. measure or restyle it synchronously).
Reply Retweet Like
Jamie Birch 15h
Replying to @Seanmclem
A React wrapper for NativeScript, which is a cross-platform framework that allows you to access any native API synchronously via JS, supporting 2-way marshalling of all data types. In other words, a single-threaded, bridgeless alternative to React Native.
Reply Retweet Like
Jamie Birch 15h
Replying to @notbrent @Baconbrix
That's a daunting one off the Kanban now; thanks fellas!
Reply Retweet Like
Jamie Birch 15h
Replying to @notbrent @Baconbrix
Fortunately enough, all my native libraries on this project are npm packages! Shows how well developed the RN ecosystem is.
Reply Retweet Like
Jamie Birch 15h
Replying to @notbrent @Baconbrix
Thanks, Brent! I just happened to come across that post a few minutes ago and have integrated it. Brilliant resource, . 💯 Now my face is inside LinguaBrowse.
Reply Retweet Like
Jamie Birch 16h
Replying to @steobrien @Vjeux
Swift Playground (at least on desktop) does something like this. It’ll show how many iterations a for loop has run, for example. But the highlighting of the line is indeed a nice touch.
Reply Retweet Like
Jamie Birch 16h
Replying to @chrisheninger
That seems to show the licence type for each dependency, but doesn’t include the licence itself – doesn’t solve the whole problem as far as I can see.
Reply Retweet Like
Jamie Birch 16h
Does anyone have a good way to generate a list of licences for the dependencies used in your React Native app?
Reply Retweet Like
Jamie Birch 18h
Replying to @osfrnc @Kaiyes_Ansary
Either way, here's a gist of my old AppDelegate to show a programmatic approach, as I think menu bars can easily start to require more complicated logic than IB alone offers. It creates a menu bar as pictured. Disclaimer: very quick-and-dirty code.
Reply Retweet Like
Jamie Birch 20h
I'm implementing custom navigators for React Navigation to use it as the nav framework for React NativeScript! Here is NativeScript's "Tabs" component (based on UIPageViewController + MDCTabBar in iOS; and FrameLayout in Android). Some more work to go, but pleased with this!
Reply Retweet Like
Jamie Birch retweeted
Kaiyes Ansary 22h
Huge props to for making this boilerplate. Now you can make tray apps using vanilla react native. This couldn't have been done without who have been supporting react native heavily. Thanks for all the inspirations.
Reply Retweet Like
Jamie Birch 23h
Replying to @osfrnc @Kaiyes_Ansary
Ah, is that the case? I was still able to edit the menu bar programmatically (e.g. to add a “Quit” command into the File menu); didn’t think a StoryBoard would be needed for copy&paste. I can dig up that code in an hour or two either way.
Reply Retweet Like
Jamie Birch 23h
Replying to @osfrnc @Kaiyes_Ansary
Not totally following what the topic is at hand, but my StackOverflow answer on setting up a Swift AppDelegate for a macOS app might be relevant:
Reply Retweet Like
Jamie Birch May 23
Replying to @satya164 @react
AND BOY DOES IT RUN Looks like React NativeScript will be adopting React Navigation as its navigation framework! 🎉 Seems like a good stop-off point for tonight! Thanks so much for your help as always, ! 😊
Reply Retweet Like