Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@appsimples/atlantica-react-native

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appsimples/atlantica-react-native

#### Permission

  • 0.3.7
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Atlantica

Permission
  • Since this is a private package, you will have to ask for permission to install it in you application
  • Once your npm account has been added to the @appsimples organization, login in your terminal using npm login and you are good to go
Getting Started
1) Adding the lib to your project:

To add this lib to your project, simply run yarn add @appsimples/atlantica-react-native

2) Add a theme to your project:

A theme is an object of the type ATLTheme. It can be added in a file as such:

export const theme = {
  // Colors
  ColorPrimary: '#0073E1',
  ColorLightNeutral: '#9E9E9E',
  ColorDarkNeutral: '#464646',
  ...
}
3) Provide the theme to your project:

In your App.tsx file, wrap your screen with the theme provider, providing the previously created theme.

import React, { Component } from 'react'
import { RootNavigation } from './src/navigation/RootNavigation'
import { ATLThemeProvider } from '@appsimples/atlantica-react-native'
import { theme } from './src/theme/Themes'
import { ATLTheme } from '../build/src/theme/ThemeProvider'

export default class App extends Component<> {
  render() {
    return (
      // ATLThemeProvider is needed here order to have the same theme throughout the whole app
      <ATLThemeProvider theme={theme as ATLTheme}>
        <RootNavigation />
      </ATLThemeProvider>
    )
  }
}

That's all the necessary setup! Now you can finally use a component.

4) Using a component:

Now you simply have to import it into your screen and use it.

import { ATLButton } from '@appsimples/atlantica-react-native'
...
return (
    <ATLButton
        title={'MyButton'}
        onPress={onPressMyButton}
    />
)

For more information on the usage of each component, visit our API documentation here.

5) Stylization:

Your components receive its values from the theme we created on step 2 of this guide. However, if you want a particular instance of it to look different, it can be done by overriding its initial props and replacing it with the desired values. In the example that follows, we want this specific instance of the button to have a fontSize of 30.

import { ATLButton } from '@appsimples/atlantica-react-native'
...
return (
    <ATLButton
        title={'MyButton'}
        onPress={onPressMyButton}
        buttonBaseProps={{
            fontSize: 30
        }}
    />
)

FAQs

Package last updated on 05 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc