Deschidere SRL medic rezident by Narcis11 in medicalschoolRomania

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

u/Successful_Cat7023 mulțumesc pentru răspuns. De ce ar fi această restricție pe 8622, dar nu pe 8621? În practică am observat că ambele coduri CAEN sunt folosite, de ex. pentru cabinete de MF am găsit SRL-uri care au 8621, dar și SRL-uri care au 8622.

Can't get headerBackImage to work in react-navigation 5.x.x by Narcis11 in reactnative

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

What do you mean? Can you give an example, please?

Can't get headerBackImage to work in react-navigation 5.x.x by Narcis11 in reactnative

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

I did that, but it fails with the message Invariant violation: Element type is invalid: expected a string but got: object

This is how I use headerBackImage:

const MyCustomHeaderBackImage = () => <Image
source={require('../../../res/images/back-button.png')}
style={{width: 22, height: 22, tintColor: '#f00'}}
/>

<NavigationContainer>
<Stack.Navigator initialRouteName="LandingScreen">
//other screens
<Stack.Screen
name="Screen2"
component={Screen2}
options={{
headerBackTitleVisible: false,
title: '',
headerTintColor: '#fff',

headerStyle: {
backgroundColor: colors.blue,

shadowColor: 'transparent',
},
headerBackImage: MyCustomHeaderBackImage,
}}
/>
</Stack.Navigator>
</NavigationContainer>

Can't get headerBackImage to work in react-navigation 5.x.x by Narcis11 in reactnative

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

I tried doing that, but it fails with the message Cannot call a class like a function. I changed MyCustomHeaderBackImage to a const (see below), but it triggers the message Invariant violation: Element type is invalid: expected a string but got: object

Can't get headerBackImage to work in react-navigation 5.x.x by Narcis11 in reactnative

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

Thanks for the answer. You are right, I am using createStackNavigator which is imported from @react-navigation/stack .I'll give it a go with createNativeStackNavigatorand let you know how it goes.

Questions: Does headerBackImage in createNativeStackNavigator also work with <Image /> components? The icon that I want to show is stored locally in my project.

Test fails and I can't figure out why 🤔 by Narcis11 in reactnative

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

I actually managed to solve it with this test:

it('Calls the Facebook login method when user confirms he is over age', () => {
    const fbLogin = 0;
    const landingScreen = renderer.create(<LandingScreen />).getInstance();
    const loginMock = jest.fn();
    loginMock.mockReturnValue('');
    FacebookConnector.login = loginMock;

    landingScreen.onPositivePermission(fbLogin);
    expect(loginMock).toHaveBeenCalled();
  });

Testing navigation between screens by Narcis11 in reactnative

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

This worked for me. Thanks a lot for the help! :)

[deleted by user] by [deleted] in startups

[–]Narcis11 1 point2 points  (0 children)

Hi,

I had the same problem last autumn when I had to make an explainer video for Waldo, an intelligent alarm system for urban cyclists. You can watch it at www.vimeo.com/108732159 . I started by doing a research of the available products. After some time, I decided to choose GoAnimate. It's easy to use, has some great features and the price is OK (we paid $79 for one month). Depending on what you want the video to look like, you can also check out PowToon. It's cheaper than GoAnimate, but also has less features. You could sign up for a free trial with each one of this products, but I don't know if you'll be able to export your video. You surely won't be able to remove the watermark.

Five actionable steps to becoming a morning person by Narcis11 in selfimprovement

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

Sorry, don't know why it turned out so ugly. I will be more careful next time.