Skip to content

HuXin957/react-native-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-portal

安装:

npm i @huxin957/react-native-portal --save

yarn add @huxin957/react-native-portal

使用:

import Portal from "@huxin957/react-native-portal";

const App = () => {
  return (
    <Portal.Host>
      <View>
        <Text>我是根节点</Text>
      </View>
    </Portal.Host>
  );
};

Static Method

add(children: ReactNode) => number

remove(key: number) => void

Releases

No releases published

Packages

No packages published