This repository has been archived by the owner on May 13, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 449
react-navigation支持吗 #262
Comments
打下面的补丁以后可以用: import {StyleSheet} from 'react-web'
import { Linking } from 'react-navigation/lib/PlatformHelpers'
Linking.getInitialURL = () => {
return new Promise(resolve => {
resolve('')
})
}
StyleSheet.absoluteFill = StyleSheet.create({
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0
}) 注意 import {
StackNavigator,
TabNavigator
} from 'react-navigation/lib/react-navigation.js' |
打补丁怎么打 |
index.ios.js: import './patch.js'
require('./src') // 用 require 保证在 import patch 之后运行 patch.js import {StyleSheet} from 'react-web'
import { Linking } from 'react-navigation/lib/PlatformHelpers'
Linking.getInitialURL = () => {
return new Promise(resolve => {
resolve('')
})
}
StyleSheet.absoluteFill = StyleSheet.create({
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0
}) src/index.js import { AppRegistry } from 'react-native'
import {
StackNavigator,
TabNavigator
} from 'react-navigation/lib/react-navigation.js'
// 你的 react native 程序代码...
AppRegistry.registerComponent('...', () => ...) |
我打了补丁没有用啊 |
我也不能用 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
新版本的reactnative推荐使用reactnavigation,打开后提示
The text was updated successfully, but these errors were encountered: