Skip to content

React native paper not working with react native 0.79.1Β #4675

@Pycode0007

Description

@Pycode0007

Issue

useLatestCallback.default is not a function (it is undefined)

Due to these changes
// CHANGED - require() syntax

  • const ImageBackground = require('react-native/Libraries/Image/ImageBackground');
  • const ImageBackground = require('react-native/Libraries/Image/ImageBackground').default;

// Unchanged - import syntax
import ImageBackground from 'react-native/Libraries/Image/ImageBackground';

// RECOMMENDED - root import
import {ImageBackground} from 'react-native';

Your Environment

software version
react-native 0.79.1
react-native-paper 5.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions