Categories
Mastering Development

react-native ITMS-90809: Deprecated API Usage

I already went through multiple posts and possible fixes, updating different libraries, etc, trying to fix this issue. I’m not able to identify which library can be the problem. After running grep -r UIWebView ./* on my entire project I get the following references: Binary file ./ios/myApp.xcworkspace/xcuserdata/myuser.xcuserdatad/UserInterfaceState.xcuserstate matches Binary file ./ios/build/myApp/ModuleCache.noindex/2HLMFU1M0QDOH/UIKit-1V5UHAPTOD24G.pcm matches Binary file ./ios/build/myApp/ModuleCache.noindex/2HLMFU1M0QDOH/WebKit-3M3AFHBPPA3AE.pcm […]

Categories
Mastering Development

Legacy context API has been detected within a strict-mode tree

{ “name”: “my-app”, “version”: “0.1.0”, “private”: true, “dependencies”: { “@testing-library/jest-dom”: “^4.2.4”, “@testing-library/react”: “^9.3.2”, “@testing-library/user-event”: “^7.1.2”, “bootstrap”: “^4.4.1”, “bootstrap-social”: “5.1.1”, “cross-fetch”: “2.1.0”, “font-awesome”: “4.7.0”, “prop-types”: “15.6.0”, “react”: “^16.13.1”, “react-animation-components”: “3.0.0”, “react-dom”: “^16.13.1”, “react-popper”: “0.9.2”, “react-redux”: “5.0.7”, “react-redux-form”: “1.16.8”, “react-router-dom”: “^4.3.1”, “react-scripts”: “3.4.1”, “react-transition-group”: “2.3.0”, “reactstrap”: “5.0.0”, “redux”: “3.7.2”, “redux-logger”: “3.0.6”, “redux-thunk”: “^2.2.0” }, “scripts”: { “start”: […]

Categories
Mastering Development

Error rendering react-redux functional component when data is deleted from firestore (useFirestoreConnect)

My ArticleList component is successfully getting & displaying the user’s list of articles from firestore when I first load the app. The user can click a “Remove Article” button, which successfully removes the article from the subcollection in firestore, but it causes an error in the rendering of the react component, which seems to still […]

Categories
Development

Jest test passes locally but fails in azure devops

I have a react application using react-scripts 3.2.0 This is my test : jest.mock(‘./../shared/utils/getRequestWithDispatchUsing’, () => ({ __esModule: true, default: () => () => () => () => ‘getRequestWithDispatchUsing is success’, })); describe(‘getContractsUsing’, () => { const dispatch = jest.fn(action => action); const fetch = jest.fn(); const clientNumber = ‘clientNumber’; beforeEach(() => { jest.clearAllMocks(); }); […]

Categories
Development

In React 16 Upgrade, getting error: Uncaught TypeError: Cannot read property ‘input’ of undefined

I am upgrading from React v15.6.2 to v16.0. After following the migration instructions on the React site (https://reactjs.org/blog/2017/09/26/react-v16.0.html) and doing the babel upgrade (to v7), I am still getting the above error. Clicking through the error message, I see that ReactDom is undefined in the bundle: var _React$DOM = _react2.default.DOM, input = _React$DOM.input, <<< Here […]

Categories
Development React

‘React/RCTBundleURLProvider.h’ file not found after updating react-native from 0.59 to 0.61.4

I recently updated my project that was using react-native 0.59 to 0.61.4. The android build works just fine but the ios fails with error : ‘React/RCTBundleURLProvider.h’ file not found On my project message extension. I tried all the main fixes for this issues like: https://github.com/facebook/react-native/issues/12077#issuecomment-302318906 Trying to create a React scheme, which I wasn’t able […]

Categories
Development Facebook Social Media

Xcode 11 Module AppRegistry is not a registered callable module (calling runApplication)

I recently upgraded (painfully) from react-native 0.59.10 to 0.61.2 and when I build and run thru Xcode 11 the splash screen loads but then errors show up in the console and the app doesn’t load. I’ve tried: cd ios && rm -rf Pods && pod cache clean –all && pod install && cd .. react-native […]