0

我需要附加一个我没有写的应用程序Modal。但我知道那里有一个。我怎样才能做到这一点?root elementReact-Nativeroot element

4

1 回答 1

0

这很简单,你只需要安装 react-native-modal,并从 node_modules 中查看源代码

http://github.com/react-native-modal/react-native-modal 以此为例,这是源代码 https://github.com/react-native-modal/react-native-modal/ blob/master/src/modal.tsx

这个答案是由https://stackoverflow.com/users/9816472/isaac在评论中做出的

于 2021-08-26T14:55:44.973 回答