React-Native: Application has not been registered error

后端 未结 23 2165
無奈伤痛
無奈伤痛 2020-12-22 18:55

I am currently going through the React-Native tutorials. I began with the Getting Started tutorial, where I made a new react native project and successfully managed to run t

23条回答
  •  一向
    一向 (楼主)
    2020-12-22 19:24

    In my case i have got a different solution in case any one need

    yarn remove react-native-material-dropdown
    

    Install new packages react-native-material-dropdown-v2

    yarn add react-native-material-dropdown-v2
    

    Replace react-native-material-dropdown with react-native-material-dropdown-v2 in your code

    e.g. import { Dropdown } from 'react-native-material-dropdown' to import { Dropdown } from 'react-native-material-dropdown-v2'

    another thing ==========

    1. Open node_modules and then search for react-native-material-textfield open the file and go to src folder
    2. Under src you will see affix, helper, label folder - under each folder, there is an index.js
    3. open the index.js of the mentioned folders one by one (all 3 folders) and search for the text style: Animated.Text.propTypes.style, and replace it by style: Text.propTypes
    4. And import text form react-native like this import { Animated , Text} from 'react-native';

提交回复
热议问题