sandarshnaroju / react-native-nano

Build mobile apps in JSON
https://nanoapp.dev
87 stars 5 forks source link

Informations about this framework #6

Closed beyons closed 8 months ago

beyons commented 1 year ago

Hi i have a question this framework is a static framework or a dynamic framework i mean can i use the animation in every view or not yet implemented ? thank you a lot

sandeshnaroju commented 1 year ago

Hey, thanks for using this framework. Yes, we support animations from react-native-animatable package, here is how you can use animation for a component.

const  countText = {
  component:  NANO.TEXT,
  name:'text',
  value:  1,
  props: {
    style: {
        fontSize:  50,
        alignSelf:  'center',
        justifyContent:  'center',
    }
  },
  animation:{ 
    animation:"rotate", 
    delay:1000,
    iterationCount: "infinite" 
  }
};

An you can add the above text component in your screen. Check the documentation for available options for a component and screen here.