Commit d745f46c authored by Orhan Sönmez's avatar Orhan Sönmez

Update index.js

parent 4dd8b2cc
const React = require('react'); const React = require('react');
import { NativeModules: { ExtraDimensions }, Platform } from 'react-native'; import { NativeModules, Platform } from 'react-native';
if (Platform.OS === 'android') { if (Platform.OS === 'android') {
module.exports = { module.exports = {
get(dim) { get(dim) {
return ExtraDimensions[dim]; return NativeModules.ExtraDimensions[dim];
} }
}; };
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment