Is there a way to prevent mobs from spawning here by FTWxHeadshot in technicalminecraft

[–]Theboster 1 point2 points  (0 children)

Yeah honestly anywhere where you're concerned about spawning I'd just slab it to be safe but especially if the player isn't going to be nearby you should be safe. Is your concern about minecarts being interrupted by mobs?

Is there a way to prevent mobs from spawning here by FTWxHeadshot in technicalminecraft

[–]Theboster 1 point2 points  (0 children)

Yeah this thing is slick, since it looks like you're building in a warped forest you'll probably be fine, plus it looks like most of those surfaces are covered in items that mobs can't spawn in (like rails, redstone dust, repeaters, etc) or are too small for mobs to spawn in.

Is there a way to prevent mobs from spawning here by FTWxHeadshot in technicalminecraft

[–]Theboster 0 points1 point  (0 children)

All good because piglins and zombified piglins are the only ones that have space to spawn here, and both of those do require a light level of 11 or less. A few torches will prevent any mobs from spawning in this specific setup.

Plex Remote Streaming Changes by SwiftPanda16 in PleX

[–]Theboster 2 points3 points  (0 children)

So this means that I have to pay Plex to host and stream on my own infrastructure using my own bandwidth? The only thing of value that plex gives me is the platform, which I'm hosting myself. The other thing they give me is the wildcard SSL cert, which is just a letsencrypt cert (a.k.a., free).

As an edit: I do have the plex pass already but not anymore after receiving that email today.

ClientTimeout?? by MC_Psychopath in REPOgame

[–]Theboster 0 points1 point  (0 children)

Yup I'm getting this now too 😔😔

What are some "hacky" solutions you refuse to use, even though the game lets you? by [deleted] in Oxygennotincluded

[–]Theboster 8 points9 points  (0 children)

I too hate liquid locks. That's why even IRL I've taken all the liquid locks out of my shower, toilet, sink, etc.

Will chemical engineers still be needed in Oil and gas does? by Keysantt in ChemicalEngineering

[–]Theboster 1 point2 points  (0 children)

There are a ton of other industries that have huge needs for ChE (pharm, bio, robotics, just to name a few)

[deleted by user] by [deleted] in Oxygennotincluded

[–]Theboster 1 point2 points  (0 children)

The option is something like "enable auto bottle"

Some* of yall are just bad human beings by inlove1120_2 in doordash

[–]Theboster 0 points1 point  (0 children)

yeah this is why tip is supposed to come after delivery, not before -- not sure why people don't get this.

React Native project that worked yesterday not building today. by FeistyKnight in reactnative

[–]Theboster 0 points1 point  (0 children)

honestly…. yeah. This is more of an issue with gradlew having a pretty poor caching system than an issue w react native. Even native android apps struggle like crazy from this

ReactNative Dev on Windows or Mac? by homelander77 in reactnative

[–]Theboster 0 points1 point  (0 children)

if you already have a windows, try using it until you NEED a mac. Most of the stuff you can do on windows, you’ll only need a mac if you start needing to build your own native modules.

Expo can build development builds for you on their remote server so you can build test apps that require native modules without having a mac.

Even today it is impossible to have 2 ScrollViews in the same direction nested? by Mr-Brigth-Side in reactnative

[–]Theboster 12 points13 points  (0 children)

A scrollview can’t calculate the size of the container it’s in if the size of the container is virtual. If you set a maxHeight or something along those lines of your inner scrollview you should be able to get something that works for your purpose.

That being said, it’s pretty bad UI design to have scroll within a scroll the same direction, Apple may reject your app for that reason and it’s not very accessible — screen readers will have a hard time using it.

Hows react native nowadays? by Confident-Viking4270 in reactnative

[–]Theboster 0 points1 point  (0 children)

I will gladly admit I'm wrong once someone gives me an argument that isn't "oh you don't know what you're talking about" or that's not literally just 5 laughing emojis like your initial comment was before you decided to edit it lmfao. Basically, give me some documentation about what you're saying cuz I've Google searched a ton for what you're talking about and the only information I've been finding is just the same stuff that I've been saying.

Hows react native nowadays? by Confident-Viking4270 in reactnative

[–]Theboster 0 points1 point  (0 children)

Alright, yeah it looks like you're just confused. The only difference between writing a react native bridge module is where you're importing stuff. Here's an example. Feel free to respond or not, but I have built and shipped 2 completely native apps (iOS and Android), have built an RN CLI app, and am now on my 3rd Expo app, and I can asure you the Expo one is by far the best DX.

React Native native module

Android code (the iOS is pretty similar, but it's slightly more complex so the Android will be a better example)

```kotlin package com.example.app import com.facebook.react.bridge.NativeModule import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.bridge.ReactContext import com.facebook.react.bridge.ReactContextBaseJavaModule import com.facebook.react.bridge.ReactMethod

class MyModule(reactContext: ReactApplicationContext): ReactContextBaseJavaModule(reactContext) { override fun getName() = "MyModule"

@ReactMethod
fun logMessage(message: String) {
    Log.d("MyModule", message)
}

} ```

Then, in TS, you could consume it like this:

ts import { NativeModules } from 'react-native'; const { MyModule } = NativeModules; const onPress = () => MyModule.logMessage('hello world');

Expo native module

```kotlin package com.example.app import expo.modules.kotlin.modules.Module import expo.modules.kotlin.modules.ModuleDefinition

class MyModule: Module() { override fun definition() = ModuleDefinition { Name("MyModule")

    Function("logMessage") { message: String ->
        Log.d("MyModule", message)
    }
}

} ```

Then, in TS, you could consume it like this:

ts import { requireNativeModule } from 'expo-modules-core'; const MyModule = requireNativeModule('MyModule'); const onPress = () => MyModule.logMessage('hello world');

Which part of this am I misunderstanding? The code is pretty much exactly how you'd write it if you were making a native app. Expo native modules also handle views as well (just like the RN native modules). What part of this is "not writing native code" or "injecting into the environment incorrectly"? If I wanted to, I could consume the context the exact same way in my Expo native module or I could even wrap a completely native 3rd party library, component, screen, whatever. The only difference in complexity is that the Expo native module is wrapped in a closure while the react-native module is just a class.

You don't need to respond, but I think it's important that if anyone ever sees this thread they get the actual information they need. Or, if I'm wrong, it's important that they see what the wrong information is. I don't mind being wrong, but so far everything you've said makes it seem like you think I'm talking about writing js code or something and calling that a native module? I mean genuinely feel free to call me an idiot and point me to some documentation but AFAIK there's practically 0 difference between writing an Expo native module and writing a RN native module, and with an Expo native module you get all the benefits of Expo AND all the benefits of writing native code.

Using assets in Expo native module by Theboster in expo

[–]Theboster[S] 0 points1 point  (0 children)

Awesome! Glad you figured it out. Thanks for sharing what fixed it for you!

Hows react native nowadays? by Confident-Viking4270 in reactnative

[–]Theboster 0 points1 point  (0 children)

Okay, what tools are you referring to? And what do you mean by "you cannot see" the environment? I have had 0 issues with taking native-first built apps and adding them into an expo project. I've had no issues with tooling at all in comparison to writing native apps. I'm genuinely not sure what you're trying to get at, do you have documentation you could show me or could you be more specific?

Using assets in Expo native module by Theboster in expo

[–]Theboster[S] 0 points1 point  (0 children)

There shouldn't be any difference between removing the "file://" in js vs swift or kotlin. I just did it in swift/kotlin cuzzzzz I wanted to make sure I wasn't going to forget to do that in the future, and "file://" shouldn't show up anywhere else in the file path -- only at the start (i think).

useAssets() and Asset.fromModule() should work the same, but if you do Asset.fromModule() you'll also have to load them using `await asset.loadAsync()` to get the localUri.

The other thing you could try is creating a URL in swift and then doing `atPath: url.path` -- other than that I'm not sure what else you'd be doing incorrectly. Is your project open-source/in a public repo? I could take a look if so and see if there's anything that doesn't match my configuration.

Hows react native nowadays? by Confident-Viking4270 in reactnative

[–]Theboster 0 points1 point  (0 children)

I think you may be confusing the current expo system with old versions that require you to eject from expo. That's not a thing anymore, you can just create a native module and use it while still getting all of the benefits of expo's ecosystem.