That function is not part of the library on react-native according to this Github issue. That's why it keeps saying that it's not a function, because it can't find it.

Answer from Noah Allen on Stack Overflow
🌐
GeeksforGeeks
geeksforgeeks.org › reactjs › global-styling-with-styled-components-in-react
Global Styling with styled-components in React - GeeksforGeeks
July 23, 2025 - Global Styling: Use GlobalStyle from styled-components to set global styles for body margin, color, and font-family. Custom Button Styling: Define CustomButton styled-component for button styles including padding, margin, color, border, and ...
🌐
Scalablecss
scalablecss.com › styled-components-global-styles
How to Create Global Styles with Styled Components - Scalable CSS
June 2, 2020 - This is just an example, and you might structure the top of your React tree differently, like this: ... The important thing to remember is to place the GlobalStyle component as a sibling component to your main application component(s). And that’s it! Global styling is now all set up with Styled Components.
🌐
styled-components
styled-components.com › docs › basics
Styled Components Basic
Some of the differences to the web-version are, that you cannot use the keyframes and createGlobalStyle helpers since React Native doesn't support keyframes or global styles.
🌐
GitHub
github.com › styled-components › styled-components
GitHub - styled-components/styled-components: Fast, expressive styling for React. Server components, client components, streaming SSR, React Native—one API.
Style React components with real CSS, scoped automatically and delivered only when needed. No class name juggling, no separate files, no build step required. Works everywhere React runs. Server components, client components, streaming SSR, and React Native—same API, automatic runtime detection. Full CSS, no compromises. Media queries, pseudo-selectors, nesting, keyframes, global styles.
Starred by 41K users
Forked by 2.5K users
Languages   TypeScript 90.1% | JavaScript 9.6% | HTML 0.3%
🌐
Dilshankelsen
dilshankelsen.com › create-global-styles-with-styled-components
How To Create Global Styles With Styled Components | Dilshan Kelsen
June 24, 2021 - There are times where you want to style your React application globally and not each component individually. For this, we can make use of the createGlobalStyle API. createGlobalStyle is a web-only API, i.e. it won't work in React Native.
🌐
styled-components
styled-components.com › docs › api
styled-components
Returns a StyledComponent that does not accept children. Place it at the top of your React tree and the global styles will be injected when the component is "rendered".
🌐
Docureacten
docureacten.github.io › managing global styles and themes
Managing Global Styles and Themes | React.js: Learn Easily with Examples
In this section, we'll explore ... in the React ecosystem. Global styles are CSS rules that apply to the entire application, affecting all components unless specifically overridden....
Find elsewhere
🌐
React Native
reactnative.dev › docs › style
Style · React Native
February 20, 2026 - All of the core components accept a prop named style. The style names and values usually match how CSS works on the web, except names are written using camel casing, e.g. backgroundColor rather than background-color.
🌐
DEV Community
dev.to › gedalyakrycer › ohsnap-manage-global-styles-in-react-native-334
OhSnap! Manage Global Styles In React Native - DEV Community
May 24, 2021 - Here are two ways to handle global styles that are actually pretty simple, yet powerful. Using a standard React pattern, we will create a custom component for the element we want to style globally.
🌐
Educative
educative.io › answers › how-to-use-styled-components-with-react-native
How to use styled components with React Native
This means that you can give a ... use keyframes and createGlobalStyle helpers while styling as React Native does not support keyframes or global styles....
🌐
GitHub
gist.github.com › chrislopresto › 490ef5692621177ac71c424543702bbb
styled-components v4 + createGlobalStyle + TypeScript · GitHub
import * as styledComponents from 'styled-components/native'; import {ReactNativeThemedStyledComponentsModule} from 'styled-components/native'; import {Theme} from '../themes'; const { default: styled, css, ThemeProvider, } = styledComponents as ReactNativeThemedStyledComponentsModule<Theme>; export {css, ThemeProvider}; export default styled;
🌐
Stack Overflow
stackoverflow.com › questions › 77281893 › react-native-stylesheets-global-design-constants
styled components - React Native StyleSheets Global Design Constants - Stack Overflow
import React from 'react'; import {TextInputProps} from 'react-native'; import {Label} from './TextInputStyle'; interface ITextInputProps extends TextInputProps { label?: string; } const TextInput = ({label}: ITextInputProps) => { return ( <Label>{label}</Label> ); }; export default TextInput; ... export const Body = css` font-family: 'Rubik-Regular'; font-size: 16px; line-height: 22px; color: ${DarkGrey2}; `; I created this Body style as a global constant that I could use accross my styled components.
🌐
Smashing Magazine
smashingmagazine.com › 2020 › 07 › styled-components-react
How To Use Styled-Components In React — Smashing Magazine
July 23, 2020 - While the original goal of CSS-in-JS and, by extension, styled components is scoping of styles, we can also leverage styled components’ global styling. Because we’re mostly working with scoped styles, you might think that’s an invariable factory setting, but you’d be wrong. Think about it: What really is scoping? It’s technically possible for us — in the name of global styling — to do something similar to this: ReactDOM.render( <StyledApp> <App /> </StyledApp>, document.getElementById("root") );
🌐
DEV Community
dev.to › huduarte › como-utilizar-fontes-e-cores-globais-no-react-native-com-styled-components-3ehp
Como utilizar fontes e cores globais no React Native com styled-components - DEV Community
June 9, 2021 - Também para as fontes, como estou utilizando o expo, instalei elas utilizando o próprio expo-font e as fontes do google expo install expo-font @expo-google-fonts/poppins Caso esteja utilizando o React Native CLI, você pode declarar no objeto de fonts o nome padrão dos arquivos que adicionou no projeto. Nesse arquivo devemos declarar novamente o módulo styled-components porém com a adição das nossas fontes e cores:
🌐
DEV Community
dev.to › zhaluza › global-styling-in-react-native-1640
Global Styling in React Native - DEV Community
April 19, 2020 - Here are three ways to apply global ... way is to create custom components (e.g. custom text fields, custom buttons, etc.), define the styles within each component, and reuse these components throughout the app....
🌐
Medium
medium.com › @navneetskahlon › styling-react-components-with-styled-components-a-powerful-approach-for-global-and-component-level-1d8520a33ca7
Styling React Components with Styled-Components: A Powerful Approach for Global and Component-Level Styles | by N | Medium
June 27, 2023 - Styled-components provides an elegant and flexible way to style React components by combining CSS and JavaScript in a single component. We explored how to use styled-components for managing global styles using the createGlobalStyle function ...
Top answer
1 of 2
2

React native styling is based on js objects. So, you could create your "styling" objects on separate js files and import those files into your react components. Since sometimes it is a good idea to change the style of an object based on the values of a state variable then it could be great to have the needed values nearby for "fast understanding". All depends on how you organize your code. For example, the next code (from native tutorial) can be declared on a separate js file:

export const styles = StyleSheet.create({
      container: {
        flex: 1,
        justifyContent: 'center',
        alignItems: 'center',
      },
      button: {
        alignItems: 'center',
        backgroundColor: '#DDDDDD',
        padding: 10,
        marginBottom: 10
      }
    })

and later import using an import command:

import {styles} from '.... path to file where you placed styles code ... "
2 of 2
2

If you dont want to use class inheritance, you can write HOC which can apply styles to its child. Inside the child component, inherit required property styles from parent. BaseStyle is the hoc, maintaining the css definitions for all components. On your component that needs to inherit, we need to wrap them with the BaseStyle by providing the required style prop.

function ComponentInheritingStyle() {
  return (
      <BaseStyle style={styles.button}>
          {...this.props.children}
     </BaseStyle>
     );
   }

export const styles = StyleSheet.create({
  button: {
    backgroundColor: 'blue',
    fontSize: '12',
    borderRadius: '4',
  },
  div: {
    border: '2px',
    borderColor: 'lightblue',
    padding: 10,
    marginBottom: 10
  }
})

you could read the below link for better clarity, through class. Inheritance in React JS

🌐
Medium
medium.com › @aimanwaseem.aw26 › styled-components-in-react-a-powerful-styling-solution-9d63f36f49c5
Styled-Components in React: A Powerful Styling Solution | by Aimanwaseem | Medium
June 14, 2023 - styled-components allows defining global styles using the createGlobalStyle API. This helps in applying styles to the entire application.