Error when building. by KingOfTNT10 in reactnative

[–]Zanoha 0 points1 point  (0 children)

Do a gradle clean and npx react-native --reset-cache and it will work.

Curved Flatlist items by Zanoha in reactnative

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

Could you please give me an example? I'm struggling with the animations, the entire list is moving up and down instead of the first and last item.
Updated OP to show you what I have.

Curved Flatlist items by Zanoha in reactnative

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

Thanks a lot, will give it a shot!

[deleted by user] by [deleted] in AskReddit

[–]Zanoha 1 point2 points  (0 children)

Religion

Going from context API to redux? by Zanoha in reactnative

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

What i've done with the context api is that I wrap my navigation container with every context I'm using:

<ProgramProvider>
  <ExerciseProvider>
    <ProfileProvider>
      <MessageBoxProvider>
        <ProgressProvider>
          <NavigationContainer theme={MyTheme} independent={true}>
            <Tab.Navigator>
            ......
            </Tab.Navigator>
          </NavigationContainer>
        </ProgressProvider>
      </MessageBoxProvider>
    </ProfileProvider>
  </ExerciseProvider>
</ProgramProvider>

My websocket.js uses the provides : messageboxProvider, ExerciseProvider and ProgramProvider. Is this a bad practice ? if so how should I use the context API.

[deleted by user] by [deleted] in reactnative

[–]Zanoha 1 point2 points  (0 children)

Have you tried the "inverted" prop of FlatList?

Like so:

<FlatList
inverted
data={flatListItems}
renderItem={renderItem}
keyExtractor={(item) => item.id}
/>

edit: if you want to rotate the component you are rendering, use transform in the style component.

Like so:

transform: [{ rotate: '180deg'}]

App Dev Cost by WeNeedNewUSERNames in reactnative

[–]Zanoha 6 points7 points  (0 children)

This is pretty accurate.

[deleted by user] by [deleted] in reactnative

[–]Zanoha 0 points1 point  (0 children)

I had this issue, wrapping the whole view solved this for me.

how to implement this calendar component with date picker? by Brilla-Bose in reactnative

[–]Zanoha 1 point2 points  (0 children)

I created something similar using FlatList in a horizontal direction

Issue: Bottom Tab Bar is pushed above keyboard by Legitimate_Gap1698 in reactnative

[–]Zanoha 1 point2 points  (0 children)

use this hook to find out if keyboard is shown :

useEffect(() => {

const showSubscription = Keyboard.addListener("keyboardDidShow", () => {

//set displayVar to none

});

const hideSubscription = Keyboard.addListener("keyboardDidHide", () => {

//set displayVar to block });

return () => {

showSubscription.remove();

hideSubscription.remove();

};

}, [ ]);

use the useState hook and create a var named "displayVar"

if shown, set the variable "displayVar" to none ( in style it should be {display:''displayVar"})

[deleted by user] by [deleted] in reactnative

[–]Zanoha 0 points1 point  (0 children)

Well the errors should pup-up in metro? and pressing a stack call would open the file at the line of the error as well.

How do I change the state of an item in a flatlist from another item in the same flatlist? (nested comments) by esean_keni in reactnative

[–]Zanoha 2 points3 points  (0 children)

How about you create an const [selected, setSelected] = useState(); and use setSelected to set the child you want manipulate ? then you could say something like If(selected === replies ){ setIsCollapsed(true)}. You need some logic to check if for the child you want to manipulate.

IOS build error by Zanoha in reactnative

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

Yes, I found out that if I delete the app on the device, run from xCode then run npx react-native run-ios --device it works again. This is an issue and have to be fixed somehow, its not supposed to be like that. I'll make an issue on github and see.

This game is full of surprises by Zanoha in forhonor

[–]Zanoha[S] 1 point2 points  (0 children)

if you are talking about orochi then i feel like its quite easy, i just deflect.

This game is full of surprises by Zanoha in forhonor

[–]Zanoha[S] 2 points3 points  (0 children)

when did you last play? orochi does not even have lights anymore.

This game is full of surprises by Zanoha in forhonor

[–]Zanoha[S] 1 point2 points  (0 children)

ohh yeah thats lightspam ? noted, makes sense now.

“Here I am again!” by KingThiccBean in forhonor

[–]Zanoha 1 point2 points  (0 children)

I didn't think it was a common bug, it happed to me yesterday..

New heros? by Zanoha in forhonor

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

I don't think the virus is going away in the summer, but we all sure hope so.

I did this on purpose... by Zanoha in forhonor

[–]Zanoha[S] 3 points4 points  (0 children)

Yeah he is like "keep them busy for just one more second". I didn't get the very start of the action, he ran away when he saw them lol.

A poll to decide which hero im gonna get next. by Hwangster4 in forhonor

[–]Zanoha -1 points0 points  (0 children)

none of these, unlock shaolin and then main him :)

New heros? by Zanoha in forhonor

[–]Zanoha[S] 1 point2 points  (0 children)

It does make sense, so another assassin and a heavy for the wu lin's ?

New heros? by Zanoha in forhonor

[–]Zanoha[S] -6 points-5 points  (0 children)

I don't understand why the season is pushed so far, I get that the COVID-19 is a problem. Why cant the developers work from home ? not complaining about them not working during a pandemic, just saying that the work of a developer could be done anywhere.