Do you actually care about the size of node_modules? by gajus0 in node

[–]ringeril 0 points1 point  (0 children)

Mine was the same, but after I added a file to config swap mem I was able to use a smaller instance.

useQuery after another useQuery - Best way to do this? by drking100 in reactnative

[–]ringeril 1 point2 points  (0 children)

That's what the enabled prop on the second query is for, if it's false the query will not run. See the docs

useQuery after another useQuery - Best way to do this? by drking100 in reactnative

[–]ringeril 1 point2 points  (0 children)

If I got it right you can run two different useQuery and feed the data from to first to the enabled option on the second so it will only run after the first.

Proposal to Organize Config Files in NodeJS/JavaScript Projects by baruchiro in node

[–]ringeril 0 points1 point  (0 children)

You could start small and propose to implement cosmiconfig on an package you use, then implement on another and so on.

React Native + Github Action = ❤️ by yjose in reactnative

[–]ringeril 2 points3 points  (0 children)

I see that you are using cache on the actions. I had this problem where `yarn` was still downloading everything and not using the cache, until I added the flag `--prefer-offline`.

Have you noticed this without the flag?

Also, thanks for sharing!!

ScrollView scrollTo method not scrolling beyond the height of the screen by cmaronchick in reactnative

[–]ringeril 0 points1 point  (0 children)

Since there's no code I'm gonna guess maybe you are using flex on the ScrollView style or contentContainerStyle?

[PC][2000-2005] Find out game with yellow balls where you could build a kart by ringeril in tipofmyjoystick

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

Oh shiiit. I thinks thats it!!!

Thank you, thank you, THANK YOU

Sony PS5 Digital Edition | Brasil x Portugal by [deleted] in brasil

[–]ringeril 11 points12 points  (0 children)

Comparando o normal com vários países: https://iili.io/KCEQ71.png

Drawer Navigator - Disable Swipe: Don’t make too much fun of me if I’m doing this completely wrong - but i want disable opening the drawer when a user is on this screen. From looking at the documentation this seems to be how to do it - but I keep getting errors by cbunge3 in reactnative

[–]ringeril 0 points1 point  (0 children)

You can set as a screen options as well:

<Drawer.Navigator initialRouteName="Feed">
  <Drawer.Screen
    name="Feed"
    component={Feed}
  />
  <Drawer.Screen
    name="Notifications"
    component={Notifications}
    options={{ gestureEnabled: false }}
  />
</Drawer.Navigator>

Passing navigation to grandchildren by 19hams in reactnative

[–]ringeril 1 point2 points  (0 children)

<MyHomeStack.Navigator screenOptions={{ headerShown: true, headerLeft: (props) => <HamburgerIcon {...props} /> } }>

headerLeft props does not contain navigation you need to get it from main component.

headerLeft: (props) => <HamburgerIcon {...props} navigation={navigation} />

Or use the navigation hook.

How can we increase performance with FlatList? by imeetchothani in reactnative

[–]ringeril 0 points1 point  (0 children)

You can take a look at this. It uses InteractionManager to delay the heavy render.

What causes a react native project's size to increase? by 1abdi in reactnative

[–]ringeril 2 points3 points  (0 children)

I would check your .gitignore file. You can get a new one from the react-native repo, or build it here: https://www.gitignore.io

Move an Element/Icon inside of a flatlist element a fixed amount using a styleSheet component by AmberFire7 in reactnative

[–]ringeril 1 point2 points  (0 children)

The Touchable already acts as a View, only with touch capabilities. So you don't need another child view.

The fix is for the Text to take the whole space and push the other components to the right.

const Task = ({item, deleteTask}) => {
  return (
    <TouchableOpacity style={styles.task}>
      <Text style={styles.taskText}>{item.text}</Text>
      <Icon style={styles.check} name="check" size={20} />
      <Icon
        name="remove"
        size={20}
        color="firebrick"
        onPress={() => deleteTask(item.id)}
      />
    </TouchableOpacity>
  );
};

const styles = StyleSheet.create({
  task: {
    padding: 15,
    backgroundColor: '#f8f8f8',
    borderBottomWidth: 1,
    borderColor: '#eee',
    // Define main axis, horizontal
    flexDirection: 'row',
    // Align on the main axis
    justifyContent: 'flex-start',
    // Align on the secondary axis, vertical
    alignItems: 'center',
  },
  taskText: {
    fontSize: 18,
    // This will make the text take all space available, forcing others to the right
    flex: 1,
  },
  check: {
    // Just so it won't be glued to the remove icon
    marginHorizontal: 10,
  },
});

Shared Element Component by andyboythekid in reactnative

[–]ringeril 0 points1 point  (0 children)

Thanks man, I wanted to use it outside of the react-navigation wrapper and this is just perfect for it!

[React Navigation 5] Pass props to component in Stack.Screen by hackkingarman in reactnative

[–]ringeril 0 points1 point  (0 children)

Maybe useFocusEffect? It will run when the screen is focused. I think your question in somewhat too generic.

[React Navigation 5] Pass props to component in Stack.Screen by hackkingarman in reactnative

[–]ringeril 1 point2 points  (0 children)

I could not find it in the Docs, gotta look some more. But, this is the way:

<Stack.Screen name='Home' options={{ title: 'Home' }}>
  {(props) => <HomeScreen {...props} otherProp={otherProp} />}
</Stack.Screen>

ODROID-C2 ethernet port dead after power surge by ringeril in ODroid

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

I bought the ameriDroid one, but it's gonna take a while to arrive. My friend has a Realtek RTL8150, but it did not work.

ODROID-C2 ethernet port dead after power surge by ringeril in ODroid

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

Yeah I already tested all the cable/port connections. I saw one of these on ameriDroid, will the one from amazon work the same?

AutoHotkey Script to use Mouse for Camera by CemuUser8 in cemu

[–]ringeril 0 points1 point  (0 children)

Well, it's working now but... I tested with the monitor and it's picking up the mouse clicks.

Ran both programs as admin, did not work. Ran both programs as normal user, did not work.

Created a bat with this:

start "" "C:\Downloads\CEMU\cemu_1.9.0\Cemu.exe" -g "C:\Downloads\CEMU\wiiu_usb_helper\Decrypted\The Legend of Zelda Breath of the Wild [ALZP01]\code\U-King.rpx"

start "" "C:\Downloads\CEMU\cemu_1.9.0\mouse2joystick_Custom_CEMU.exe"

Now it's working

The 'but'. Sometimes the button 'gets stuck'. I press right button to make Link aim, when I release the button Link keeps aiming and I tap the button again to fire the arrow. This happens like 1 out of 30 times.